Package swiss.trustbroker.oidc
Class CustomLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
swiss.trustbroker.oidc.CustomLogoutSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
@Component
public class CustomLogoutSuccessHandler
extends org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
logger -
Constructor Summary
ConstructorsConstructorDescriptionCustomLogoutSuccessHandler(ClientConfigInMemoryRepository registeredClientRepository, TrustBrokerProperties properties, RelyingPartyDefinitions relyingPartyDefinitions, CustomOAuth2AuthorizationService authorizationService, SsoService ssoService, org.apache.velocity.app.VelocityEngine velocityEngine) -
Method Summary
Modifier and TypeMethodDescriptionvoidonLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
determineTargetUrl, determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
-
Constructor Details
-
CustomLogoutSuccessHandler
public CustomLogoutSuccessHandler(ClientConfigInMemoryRepository registeredClientRepository, TrustBrokerProperties properties, RelyingPartyDefinitions relyingPartyDefinitions, CustomOAuth2AuthorizationService authorizationService, SsoService ssoService, org.apache.velocity.app.VelocityEngine velocityEngine)
-
-
Method Details
-
onLogoutSuccess
public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException - Specified by:
onLogoutSuccessin interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler- Overrides:
onLogoutSuccessin classorg.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler- Throws:
IOException
-