Search in sources :

Example 1 with TokenResolver

use of io.micronaut.security.token.reader.TokenResolver in project micronaut-security by micronaut-projects.

the class EndSessionEndpointResolver method oktaEndSessionEndpoint.

@NonNull
private Optional<EndSessionEndpoint> oktaEndSessionEndpoint(OauthClientConfiguration oauthClientConfiguration, Supplier<OpenIdProviderMetadata> openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder) {
    SecurityConfiguration securityConfiguration = beanContext.getBean(SecurityConfiguration.class);
    TokenResolver tokenResolver = beanContext.getBean(TokenResolver.class);
    return Optional.of(new OktaEndSessionEndpoint(endSessionCallbackUrlBuilder, oauthClientConfiguration, openIdProviderMetadata, securityConfiguration, tokenResolver));
}
Also used : TokenResolver(io.micronaut.security.token.reader.TokenResolver) SecurityConfiguration(io.micronaut.security.config.SecurityConfiguration) NonNull(io.micronaut.core.annotation.NonNull)

Aggregations

NonNull (io.micronaut.core.annotation.NonNull)1 SecurityConfiguration (io.micronaut.security.config.SecurityConfiguration)1 TokenResolver (io.micronaut.security.token.reader.TokenResolver)1