Search in sources :

Example 1 with InMemoryOAuth2AuthorizationConsentService

use of org.springframework.security.oauth2.server.authorization.InMemoryOAuth2AuthorizationConsentService in project spring-authorization-server by spring-projects.

the class OAuth2ConfigurerUtils method getAuthorizationConsentService.

static <B extends HttpSecurityBuilder<B>> OAuth2AuthorizationConsentService getAuthorizationConsentService(B builder) {
    OAuth2AuthorizationConsentService authorizationConsentService = builder.getSharedObject(OAuth2AuthorizationConsentService.class);
    if (authorizationConsentService == null) {
        authorizationConsentService = getOptionalBean(builder, OAuth2AuthorizationConsentService.class);
        if (authorizationConsentService == null) {
            authorizationConsentService = new InMemoryOAuth2AuthorizationConsentService();
        }
        builder.setSharedObject(OAuth2AuthorizationConsentService.class, authorizationConsentService);
    }
    return authorizationConsentService;
}
Also used : InMemoryOAuth2AuthorizationConsentService(org.springframework.security.oauth2.server.authorization.InMemoryOAuth2AuthorizationConsentService) OAuth2AuthorizationConsentService(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService) InMemoryOAuth2AuthorizationConsentService(org.springframework.security.oauth2.server.authorization.InMemoryOAuth2AuthorizationConsentService)

Aggregations

InMemoryOAuth2AuthorizationConsentService (org.springframework.security.oauth2.server.authorization.InMemoryOAuth2AuthorizationConsentService)1 OAuth2AuthorizationConsentService (org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService)1