java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OidcClientRegistrationEndpointConfigurer

public final class OidcClientRegistrationEndpointConfigurer extends Object
Configurer for OpenID Connect 1.0 Dynamic Client Registration Endpoint.
Since:
0.2.0
See Also:
  • Method Details

    • clientRegistrationRequestConverter

      public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter clientRegistrationRequestConverter)
      Adds an AuthenticationConverter used when attempting to extract a Client Registration Request from HttpServletRequest to an instance of OidcClientRegistrationAuthenticationToken used for authenticating the request.
      Parameters:
      clientRegistrationRequestConverter - an AuthenticationConverter used when attempting to extract a Client Registration Request from HttpServletRequest
      Returns:
      the OidcClientRegistrationEndpointConfigurer for further configuration
      Since:
      0.4.0
    • clientRegistrationRequestConverters

      public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> clientRegistrationRequestConvertersConsumer)
      Sets the Consumer providing access to the List of default and (optionally) added AuthenticationConverter's allowing the ability to add, remove, or customize a specific AuthenticationConverter.
      Parameters:
      clientRegistrationRequestConvertersConsumer - the Consumer providing access to the List of default and (optionally) added AuthenticationConverter's
      Returns:
      the OidcUserInfoEndpointConfigurer for further configuration
      Since:
      0.4.0
    • authenticationProvider

      public OidcClientRegistrationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
      Adds an AuthenticationProvider used for authenticating an OidcClientRegistrationAuthenticationToken.
      Parameters:
      authenticationProvider - an AuthenticationProvider used for authenticating an OidcClientRegistrationAuthenticationToken
      Returns:
      the OidcClientRegistrationEndpointConfigurer for further configuration
      Since:
      0.4.0
    • authenticationProviders

      public OidcClientRegistrationEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer)
      Sets the Consumer providing access to the List of default and (optionally) added AuthenticationProvider's allowing the ability to add, remove, or customize a specific AuthenticationProvider.
      Parameters:
      authenticationProvidersConsumer - the Consumer providing access to the List of default and (optionally) added AuthenticationProvider's
      Returns:
      the OidcClientRegistrationEndpointConfigurer for further configuration
      Since:
      0.4.0
    • clientRegistrationResponseHandler

      public OidcClientRegistrationEndpointConfigurer clientRegistrationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler clientRegistrationResponseHandler)
      Sets the AuthenticationSuccessHandler used for handling an OidcClientRegistrationAuthenticationToken and returning the Client Registration Response.
      Parameters:
      clientRegistrationResponseHandler - the AuthenticationSuccessHandler used for handling an OidcClientRegistrationAuthenticationToken
      Returns:
      the OidcClientRegistrationEndpointConfigurer for further configuration
      Since:
      0.4.0
    • errorResponseHandler

      public OidcClientRegistrationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
      Sets the AuthenticationFailureHandler used for handling an OAuth2AuthenticationException and returning the Error Response.
      Parameters:
      errorResponseHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
      Returns:
      the OidcClientRegistrationEndpointConfigurer for further configuration
      Since:
      0.4.0
    • postProcess

      protected final <T> T postProcess(T object)
    • getObjectPostProcessor

      protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()