use of io.micronaut.security.config.SecurityConfiguration 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));
}
Aggregations