Class CustomOidcClientInitiatedLogoutSuccessHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
- org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
-
- com.xebialabs.platform.sso.oidc.web.CustomOidcClientInitiatedLogoutSuccessHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
public class CustomOidcClientInitiatedLogoutSuccessHandler extends org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandlerA logout success handler for initiating OIDC logout through the user agent. This class is similar toOidcClientInitiatedLogoutSuccessHandler. This is customised to prevent encoding of URIs We can remove this class once this issue has been fixed by spring-security team.
-
-
Constructor Summary
Constructors Constructor Description CustomOidcClientInitiatedLogoutSuccessHandler(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdetermineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)voidsetPostLogoutRedirectUri(java.lang.String postLogoutRedirectUri)Set the post logout redirect uri template to use.-
Methods inherited from class org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
onLogoutSuccess
-
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
-
-
-
-
Method Detail
-
determineTargetUrl
protected java.lang.String determineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)- Overrides:
determineTargetUrlin classorg.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
setPostLogoutRedirectUri
public void setPostLogoutRedirectUri(java.lang.String postLogoutRedirectUri)
Set the post logout redirect uri template to use. Supports the"{baseUrl}"placeholder, for example:handler.setPostLogoutRedirectUriTemplate("{baseUrl}");will make so that
post_logout_redirect_uriwill be set to the base url for the client application.- Parameters:
postLogoutRedirectUri- - A template for creating thepost_logout_redirect_uriquery parameter- Since:
- 5.3
-
-