Class OktaEndSessionEndpoint
java.lang.Object
io.micronaut.security.oauth2.endpoint.endsession.request.AbstractEndSessionRequest
io.micronaut.security.oauth2.endpoint.endsession.request.OktaEndSessionEndpoint
- All Implemented Interfaces:
EndSessionEndpoint
Provides specific configuration to logout from Okta.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class io.micronaut.security.oauth2.endpoint.endsession.request.AbstractEndSessionRequest
clientConfiguration, endSessionCallbackUrlBuilder, providerMetadataSupplier
-
Constructor Summary
ConstructorDescriptionOktaEndSessionEndpoint
(EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder, OauthClientConfiguration clientConfiguration, Supplier<OpenIdProviderMetadata> providerMetadata, SecurityConfiguration securityConfiguration, TokenResolver<io.micronaut.http.HttpRequest<?>> tokenResolver) -
Method Summary
Modifier and TypeMethodDescriptiongetArguments
(io.micronaut.http.HttpRequest<?> originating, Authentication authentication) protected String
getUrl()
parseIdToken
(io.micronaut.http.HttpRequest<?> request, Authentication authentication) /**Methods inherited from class io.micronaut.security.oauth2.endpoint.endsession.request.AbstractEndSessionRequest
getRedirectUri, getUrl
-
Constructor Details
-
OktaEndSessionEndpoint
public OktaEndSessionEndpoint(EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder, OauthClientConfiguration clientConfiguration, Supplier<OpenIdProviderMetadata> providerMetadata, SecurityConfiguration securityConfiguration, TokenResolver<io.micronaut.http.HttpRequest<?>> tokenResolver) - Parameters:
endSessionCallbackUrlBuilder
- The end session callback URL builderclientConfiguration
- The client configurationproviderMetadata
- The provider metadata suppliersecurityConfiguration
- Security configurationtokenResolver
- Token Resolver
-
-
Method Details
-
getUrl
- Specified by:
getUrl
in classAbstractEndSessionRequest
- Returns:
- The url of the request
-
getArguments
protected Map<String,Object> getArguments(io.micronaut.http.HttpRequest<?> originating, Authentication authentication) - Specified by:
getArguments
in classAbstractEndSessionRequest
- Parameters:
originating
- The originating requestauthentication
- The authentication- Returns:
- The parameters to include in the URL
-
parseIdToken
protected Optional<String> parseIdToken(io.micronaut.http.HttpRequest<?> request, Authentication authentication) /**- Parameters:
request
- The HTTP Requestauthentication
- The authentication- Returns:
- An ID token if it could be resolved
-