Class LogoutConfiguration
java.lang.Object
com.irurueta.authserver.bff.api.web.logout.LogoutConfiguration
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
FieldsModifier and TypeFieldDescription(package private) static final StringWhere the authorization server sends the browser back after the logout: the root of the SPA. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandleroidcLogoutSuccessHandler(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRepository) Builds the handler that redirects the browser to the logout URL of the authorization server (itsend_session_endpoint, withid_token_hintandpost_logout_redirect_uri), with the default redirect strategy: the answer toPOST /bff/logoutis a302that the browser follows as a top-level navigation, so no script ever reads the ID token the URL carries.
-
Field Details
-
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 (itsend_session_endpoint, withid_token_hintandpost_logout_redirect_uri), with the default redirect strategy: the answer toPOST /bff/logoutis a302that 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.
-