Class OAuth2AuthorizationServerConfigurerCustomizer

java.lang.Object
com.broadleafcommerce.auth.authorization.security.autoconfigure.OAuth2AuthorizationServerConfigurerCustomizer

public class OAuth2AuthorizationServerConfigurerCustomizer extends Object
Used in SpringAuthorizationServerComponentsConfiguration to customize OAuth2AuthorizationServerConfigurer.
  • Constructor Details

  • Method Details

    • customize

      public void customize(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
      Customize OAuth2AuthorizationServerConfigurer as appropriate.
      Parameters:
      httpSecurity - the authorization server security filter chain builder on which OAuth2AuthorizationServerConfigurer is already available via AbstractConfiguredSecurityBuilder.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 the OAuth2TokenEndpointFilter.
      tokenGenerator - The OAuth2TokenGenerator for generating access tokens.
    • getAuthorizationService

      protected org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService getAuthorizationService()
    • getSecurityService

      protected SecurityService 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

      protected TokenProperties getTokenProperties()
    • getEmbeddedLoginProperties

      @Nullable protected EmbeddedLoginProperties getEmbeddedLoginProperties()
    • getEmbeddedLoginCodeAuthenticationConverter

      @Nullable protected EmbeddedLoginCodeAuthenticationConverter getEmbeddedLoginCodeAuthenticationConverter()
    • getPasscodeService

      protected PasscodeService<PasswordToken,User> getPasscodeService()
    • getUserDetailsService

      protected OAuth2UserDetailsService getUserDetailsService()
    • getUserService

      protected UserService<User> getUserService()
    • getPublicClientAuthenticationConverter

      protected PublicRefreshPublicClientAuthenticationConverter getPublicClientAuthenticationConverter()