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

public final class OidcLogoutEndpointConfigurer extends Object
Configurer for OpenID Connect 1.0 RP-Initiated Logout Endpoint.
Since:
1.1
See Also:
  • Method Details

    • logoutRequestConverter

      public OidcLogoutEndpointConfigurer logoutRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter logoutRequestConverter)
      Adds an AuthenticationConverter used when attempting to extract a Logout Request from HttpServletRequest to an instance of OidcLogoutAuthenticationToken used for authenticating the request.
      Parameters:
      logoutRequestConverter - an AuthenticationConverter used when attempting to extract a Logout Request from HttpServletRequest
      Returns:
      the OidcLogoutEndpointConfigurer for further configuration
    • logoutRequestConverters

      public OidcLogoutEndpointConfigurer logoutRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> logoutRequestConvertersConsumer)
      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:
      logoutRequestConvertersConsumer - the Consumer providing access to the List of default and (optionally) added AuthenticationConverter's
      Returns:
      the OidcLogoutEndpointConfigurer for further configuration
    • authenticationProvider

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

      public OidcLogoutEndpointConfigurer 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 OidcLogoutEndpointConfigurer for further configuration
    • logoutResponseHandler

      public OidcLogoutEndpointConfigurer logoutResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler logoutResponseHandler)
      Sets the AuthenticationSuccessHandler used for handling an OidcLogoutAuthenticationToken and performing the logout.
      Parameters:
      logoutResponseHandler - the AuthenticationSuccessHandler used for handling an OidcLogoutAuthenticationToken
      Returns:
      the OidcLogoutEndpointConfigurer for further configuration
    • errorResponseHandler

      public OidcLogoutEndpointConfigurer 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 OidcLogoutEndpointConfigurer for further configuration
    • postProcess

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

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