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 anAuthenticationProvider
used for authenticating anOidcClientRegistrationAuthenticationToken
.authenticationProviders
(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's allowing the ability to add, remove, or customize a specificAuthenticationProvider
.clientRegistrationRequestConverter
(org.springframework.security.web.authentication.AuthenticationConverter clientRegistrationRequestConverter) Adds anAuthenticationConverter
used when attempting to extract a Client Registration Request fromHttpServletRequest
to an instance ofOidcClientRegistrationAuthenticationToken
used for authenticating the request.clientRegistrationRequestConverters
(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> clientRegistrationRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.clientRegistrationResponseHandler
(org.springframework.security.web.authentication.AuthenticationSuccessHandler clientRegistrationResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOidcClientRegistrationAuthenticationToken
and returning theClient Registration Response
.errorResponseHandler
(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
and returning theError Response
.protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object>
protected final <T> T
postProcess
(T object)
-
Method Details
-
clientRegistrationRequestConverter
public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter clientRegistrationRequestConverter) Adds anAuthenticationConverter
used when attempting to extract a Client Registration Request fromHttpServletRequest
to an instance ofOidcClientRegistrationAuthenticationToken
used for authenticating the request.- Parameters:
clientRegistrationRequestConverter
- anAuthenticationConverter
used when attempting to extract a Client Registration Request fromHttpServletRequest
- Returns:
- the
OidcClientRegistrationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
clientRegistrationRequestConverters
public OidcClientRegistrationEndpointConfigurer clientRegistrationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> clientRegistrationRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.- Parameters:
clientRegistrationRequestConvertersConsumer
- theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's- Returns:
- the
OidcUserInfoEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
authenticationProvider
public OidcClientRegistrationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProvider
used for authenticating anOidcClientRegistrationAuthenticationToken
.- Parameters:
authenticationProvider
- anAuthenticationProvider
used for authenticating anOidcClientRegistrationAuthenticationToken
- Returns:
- the
OidcClientRegistrationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
authenticationProviders
public OidcClientRegistrationEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's allowing the ability to add, remove, or customize a specificAuthenticationProvider
.- Parameters:
authenticationProvidersConsumer
- theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's- Returns:
- the
OidcClientRegistrationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
clientRegistrationResponseHandler
public OidcClientRegistrationEndpointConfigurer clientRegistrationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler clientRegistrationResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOidcClientRegistrationAuthenticationToken
and returning theClient Registration Response
.- Parameters:
clientRegistrationResponseHandler
- theAuthenticationSuccessHandler
used for handling anOidcClientRegistrationAuthenticationToken
- Returns:
- the
OidcClientRegistrationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
errorResponseHandler
public OidcClientRegistrationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
and returning theError Response
.- Parameters:
errorResponseHandler
- theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
- 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()
-