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.SimpleUrlLogoutSuccessHandlerGet the url of successful logout and handle the navigation on logout.
-
-
Constructor Summary
Constructors Constructor Description AadB2cLogoutSuccessHandler(AadB2cProperties properties)Creates a new instance ofAadB2cLogoutSuccessHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.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 Detail
-
AadB2cLogoutSuccessHandler
public AadB2cLogoutSuccessHandler(AadB2cProperties properties)
Creates a new instance ofAadB2cLogoutSuccessHandler.- Parameters:
properties- the AAD B2C properties
-
-
Method Detail
-
onLogoutSuccess
public void onLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, javax.servlet.ServletExceptionA strategy that is called after a successful logout, to handle redirection or forwarding to the appropriate destination.- Specified by:
onLogoutSuccessin interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler- Overrides:
onLogoutSuccessin classorg.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler- Parameters:
request- the http servlet reqoestresponse- the http servlet responseauthentication- the authentication- Throws:
IOExceptionjavax.servlet.ServletException
-
-