Class LogoutConfiguration

java.lang.Object
com.irurueta.authserver.bff.api.web.logout.LogoutConfiguration

@Configuration(proxyBeanMethods=false) public class LogoutConfiguration extends Object
Wires the OpenID Connect RP-initiated logout of the BFF. The handler is applied by the logout of the security filter chain (POST /bff/logout), which redirects the browser to the URL it builds.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
    Where the authorization server sends the browser back after the logout: the root of the SPA.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandler
    oidcLogoutSuccessHandler(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRepository)
    Builds the handler that redirects the browser to the logout URL of the authorization server (its end_session_endpoint, with id_token_hint and post_logout_redirect_uri), with the default redirect strategy: the answer to POST /bff/logout is a 302 that the browser follows as a top-level navigation, so no script ever reads the ID token the URL carries.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • POST_LOGOUT_REDIRECT_URI

      static final String POST_LOGOUT_REDIRECT_URI
      Where the authorization server sends the browser back after the logout: the root of the SPA.
      See Also:
  • Constructor Details

    • LogoutConfiguration

      public LogoutConfiguration()
  • Method Details

    • oidcLogoutSuccessHandler

      @Bean org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRepository)
      Builds the handler that redirects the browser to the logout URL of the authorization server (its end_session_endpoint, with id_token_hint and post_logout_redirect_uri), with the default redirect strategy: the answer to POST /bff/logout is a 302 that the browser follows as a top-level navigation, so no script ever reads the ID token the URL carries.
      Parameters:
      clientRepository - the registered OAuth2 clients.
      Returns:
      the logout success handler.