Class OidcLogoutEndpointConfigurer
java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OidcLogoutEndpointConfigurer
Configurer for OpenID Connect 1.0 RP-Initiated Logout Endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOidcLogoutAuthenticationToken.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.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>logoutRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter logoutRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Logout Request fromHttpServletRequestto an instance ofOidcLogoutAuthenticationTokenused for authenticating the request.logoutRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> logoutRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.logoutResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler logoutResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOidcLogoutAuthenticationTokenand performing the logout.protected final <T> TpostProcess(T object)
-
Method Details
-
logoutRequestConverter
public OidcLogoutEndpointConfigurer logoutRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter logoutRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Logout Request fromHttpServletRequestto an instance ofOidcLogoutAuthenticationTokenused for authenticating the request.- Parameters:
logoutRequestConverter- anAuthenticationConverterused when attempting to extract a Logout Request fromHttpServletRequest- Returns:
- the
OidcLogoutEndpointConfigurerfor further configuration
-
logoutRequestConverters
public OidcLogoutEndpointConfigurer logoutRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> logoutRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.- Parameters:
logoutRequestConvertersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's- Returns:
- the
OidcLogoutEndpointConfigurerfor further configuration
-
authenticationProvider
public OidcLogoutEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOidcLogoutAuthenticationToken.- Parameters:
authenticationProvider- anAuthenticationProviderused for authenticating anOidcLogoutAuthenticationToken- Returns:
- the
OidcLogoutEndpointConfigurerfor further configuration
-
authenticationProviders
public OidcLogoutEndpointConfigurer 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
OidcLogoutEndpointConfigurerfor further configuration
-
logoutResponseHandler
public OidcLogoutEndpointConfigurer logoutResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler logoutResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOidcLogoutAuthenticationTokenand performing the logout.- Parameters:
logoutResponseHandler- theAuthenticationSuccessHandlerused for handling anOidcLogoutAuthenticationToken- Returns:
- the
OidcLogoutEndpointConfigurerfor further configuration
-
errorResponseHandler
public OidcLogoutEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.- Parameters:
errorResponseHandler- theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationException- Returns:
- the
OidcLogoutEndpointConfigurerfor further configuration
-
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-