Class OAuth2AuthorizationServerConfigurerCustomizer
java.lang.Object
com.broadleafcommerce.auth.authorization.security.autoconfigure.OAuth2AuthorizationServerConfigurerCustomizer
Used in
SpringAuthorizationServerComponentsConfiguration
to customize
OAuth2AuthorizationServerConfigurer
.-
Constructor Summary
ConstructorDescriptionOAuth2AuthorizationServerConfigurerCustomizer
(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, SecurityService securityService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, DefaultClientScopeAuthorizationCodeRequestConverter defaultClientScopeAuthorizationCodeRequestConverter, DefaultClientScopeClientCredentialsRequestConverter defaultClientScopeClientCredentialsRequestConverter, Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext> oAuth2AuthorizationCodeRequestAuthenticationValidator, TokenProperties tokenProperties, EmbeddedLoginProperties embeddedLoginProperties, EmbeddedLoginCodeAuthenticationConverter embeddedLoginCodeAuthenticationConverter, PasscodeService<PasswordToken, User> passcodeService, OAuth2UserDetailsService userDetailsService, UserService<User> userService, PublicRefreshPublicClientAuthenticationConverter publicClientAuthenticationConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyEmbeddedLoginTokenEndpointConfigurations
(org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer tokenEndpointConfigurer, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Apply Embedded Login token endpoint request converter and authentication provider.void
customize
(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) CustomizeOAuth2AuthorizationServerConfigurer
as appropriate.protected org.springframework.security.authentication.AuthenticationProvider
getAuthCodeAuthProvider
(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.core.session.SessionRegistry sessionRegistry) protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
protected org.springframework.security.authentication.AuthenticationProvider
getClientCredAuthProvider
(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) protected EmbeddedLoginCodeAuthenticationConverter
protected EmbeddedLoginProperties
protected Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext>
protected PasscodeService<PasswordToken,
User> protected org.springframework.security.authentication.AuthenticationProvider
protected org.springframework.security.authentication.AuthenticationProvider
getRefreshTokenAuthProvider
(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) protected org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
protected org.springframework.security.authentication.AuthenticationProvider
getScopeNarrowingOAuth2AuthorizationCodeRequestAuthenticationProvider
(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService) protected SecurityService
protected TokenProperties
protected OAuth2UserDetailsService
protected UserService<User>
-
Constructor Details
-
OAuth2AuthorizationServerConfigurerCustomizer
public OAuth2AuthorizationServerConfigurerCustomizer(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, SecurityService securityService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, DefaultClientScopeAuthorizationCodeRequestConverter defaultClientScopeAuthorizationCodeRequestConverter, DefaultClientScopeClientCredentialsRequestConverter defaultClientScopeClientCredentialsRequestConverter, Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext> oAuth2AuthorizationCodeRequestAuthenticationValidator, TokenProperties tokenProperties, @Nullable EmbeddedLoginProperties embeddedLoginProperties, @Nullable EmbeddedLoginCodeAuthenticationConverter embeddedLoginCodeAuthenticationConverter, PasscodeService<PasswordToken, User> passcodeService, OAuth2UserDetailsService userDetailsService, UserService<User> userService, PublicRefreshPublicClientAuthenticationConverter publicClientAuthenticationConverter)
-
-
Method Details
-
customize
public void customize(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) CustomizeOAuth2AuthorizationServerConfigurer
as appropriate.- Parameters:
httpSecurity
- the authorization server security filter chain builder on whichOAuth2AuthorizationServerConfigurer
is already available viaAbstractConfiguredSecurityBuilder.getConfigurer(Class)
-
getScopeNarrowingOAuth2AuthorizationCodeRequestAuthenticationProvider
protected org.springframework.security.authentication.AuthenticationProvider getScopeNarrowingOAuth2AuthorizationCodeRequestAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService) -
getClientCredAuthProvider
protected org.springframework.security.authentication.AuthenticationProvider getClientCredAuthProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) -
getAuthCodeAuthProvider
protected org.springframework.security.authentication.AuthenticationProvider getAuthCodeAuthProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.core.session.SessionRegistry sessionRegistry) -
getRefreshTokenAuthProvider
protected org.springframework.security.authentication.AuthenticationProvider getRefreshTokenAuthProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) -
getPublicClientProvider
protected org.springframework.security.authentication.AuthenticationProvider getPublicClientProvider() -
applyEmbeddedLoginTokenEndpointConfigurations
protected void applyEmbeddedLoginTokenEndpointConfigurations(org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer tokenEndpointConfigurer, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Apply Embedded Login token endpoint request converter and authentication provider.- Parameters:
tokenEndpointConfigurer
- The configurer for theOAuth2TokenEndpointFilter
.tokenGenerator
- TheOAuth2TokenGenerator
for generating access tokens.
-
getAuthorizationService
protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService getAuthorizationService() -
getSecurityService
-
getRegisteredClientRepository
protected org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository getRegisteredClientRepository() -
getDefaultClientScopeAuthorizationCodeRequestConverter
protected DefaultClientScopeAuthorizationCodeRequestConverter getDefaultClientScopeAuthorizationCodeRequestConverter() -
getDefaultClientScopeClientCredentialsRequestConverter
protected DefaultClientScopeClientCredentialsRequestConverter getDefaultClientScopeClientCredentialsRequestConverter() -
getOAuth2AuthorizationCodeRequestAuthenticationValidator
protected Consumer<org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext> getOAuth2AuthorizationCodeRequestAuthenticationValidator() -
getTokenProperties
-
getEmbeddedLoginProperties
-
getEmbeddedLoginCodeAuthenticationConverter
@Nullable protected EmbeddedLoginCodeAuthenticationConverter getEmbeddedLoginCodeAuthenticationConverter() -
getPasscodeService
-
getUserDetailsService
-
getUserService
-
getPublicClientAuthenticationConverter
-