Class OidcClientRegistrationEndpointConfigurer
java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OidcClientRegistrationEndpointConfigurer
Configurer for OpenID Connect 1.0 Dynamic Client Registration Endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOidcClientRegistrationAuthenticationToken.authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.clientRegistrationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter clientRegistrationRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Client Registration Request fromHttpServletRequestto an instance ofOidcClientRegistrationAuthenticationTokenused for authenticating the request.clientRegistrationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> clientRegistrationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.clientRegistrationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler clientRegistrationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOidcClientRegistrationAuthenticationTokenand returning theClient Registration Response.errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object>protected final <T> TpostProcess(T object)
-
Method Details
-
clientRegistrationRequestConverter
public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter clientRegistrationRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Client Registration Request fromHttpServletRequestto an instance ofOidcClientRegistrationAuthenticationTokenused for authenticating the request.- Parameters:
clientRegistrationRequestConverter- anAuthenticationConverterused when attempting to extract a Client Registration Request fromHttpServletRequest- Returns:
- the
OidcClientRegistrationEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
clientRegistrationRequestConverters
public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> clientRegistrationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.- Parameters:
clientRegistrationRequestConvertersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's- Returns:
- the
OidcUserInfoEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
authenticationProvider
public OidcClientRegistrationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOidcClientRegistrationAuthenticationToken.- Parameters:
authenticationProvider- anAuthenticationProviderused for authenticating anOidcClientRegistrationAuthenticationToken- Returns:
- the
OidcClientRegistrationEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
authenticationProviders
public OidcClientRegistrationEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.- Parameters:
authenticationProvidersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's- Returns:
- the
OidcClientRegistrationEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
clientRegistrationResponseHandler
public OidcClientRegistrationEndpointConfigurer clientRegistrationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler clientRegistrationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOidcClientRegistrationAuthenticationTokenand returning theClient Registration Response.- Parameters:
clientRegistrationResponseHandler- theAuthenticationSuccessHandlerused for handling anOidcClientRegistrationAuthenticationToken- Returns:
- the
OidcClientRegistrationEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
errorResponseHandler
public OidcClientRegistrationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.- Parameters:
errorResponseHandler- theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationException- Returns:
- the
OidcClientRegistrationEndpointConfigurerfor 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()
-