java.lang.Object
iu.auth.config.OAuthAccessTokenGrant
iu.auth.config.OidcAuthorizationGrant
Authenticates to an OAuth 2.0 Token endpoint, verifies and holds a JWT access
token until expired.
-
Constructor Summary
ConstructorsConstructorDescriptionOidcAuthorizationGrant(Supplier<OAuthAuthorizationClient> credentialSupplier) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuthAuthorizationClientGets the configuredOAuthClientprotected voidtokenAuth(HttpRequest.Builder requestBuilder) Prepares anHttpRequest.Builderfor the token endpoint.protected voidverifyToken(WebToken jwt) Performs post-verification of validated JWT claims.Methods inherited from class iu.auth.config.OAuthAccessTokenGrant
getAccessToken, validateJwt
-
Constructor Details
-
OidcAuthorizationGrant
Constructor.- Parameters:
credentialSupplier- Supplies client credentials
-
-
Method Details
-
verifyToken
Description copied from class:OAuthAccessTokenGrantPerforms post-verification of validated JWT claims.- Specified by:
verifyTokenin classOAuthAccessTokenGrant- Parameters:
jwt- parsed JWT
-
getClient
Description copied from class:OAuthAccessTokenGrantGets the configuredOAuthClient- Overrides:
getClientin classOAuthAccessTokenGrant- Returns:
- Configured
OAuthClient
-
tokenAuth
Description copied from class:OAuthAccessTokenGrantPrepares anHttpRequest.Builderfor the token endpoint.- Specified by:
tokenAuthin classOAuthAccessTokenGrant- Parameters:
requestBuilder-HttpRequest.Builder
-