Class AadB2cLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
com.azure.spring.cloud.autoconfigure.aadb2c.AadB2cLogoutSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
public class AadB2cLogoutSuccessHandler
extends org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
Get the url of successful logout and handle the navigation on logout.
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
logger
-
Constructor Summary
ConstructorDescriptionAadB2cLogoutSuccessHandler
(AadB2cProperties properties) Creates a new instance ofAadB2cLogoutSuccessHandler
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLogoutSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) A strategy that is called after a successful logout, to handle redirection or forwarding to the appropriate destination.Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
determineTargetUrl, determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
-
Constructor Details
-
AadB2cLogoutSuccessHandler
Creates a new instance ofAadB2cLogoutSuccessHandler
.- Parameters:
properties
- the AAD B2C properties
-
-
Method Details
-
onLogoutSuccess
public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException A strategy that is called after a successful logout, to handle redirection or forwarding to the appropriate destination.- Specified by:
onLogoutSuccess
in interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler
- Overrides:
onLogoutSuccess
in classorg.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
- Parameters:
request
- the http servlet reqoestresponse
- the http servlet responseauthentication
- the authentication- Throws:
IOException
jakarta.servlet.ServletException
-