Class OidcLogoutAuthenticationSuccessHandler
java.lang.Object
org.springframework.security.oauth2.server.authorization.oidc.web.authentication.OidcLogoutAuthenticationSuccessHandler
- All Implemented Interfaces:
AuthenticationSuccessHandler
public final class OidcLogoutAuthenticationSuccessHandler
extends Object
implements AuthenticationSuccessHandler
An implementation of an
AuthenticationSuccessHandler used for handling an
OidcLogoutAuthenticationToken and performing the OpenID Connect 1.0
RP-Initiated Logout.- Since:
- 7.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) Called when a user has been successfully authenticated.voidsetLogoutHandler(LogoutHandler logoutHandler) Sets theLogoutHandlerused for performing logout.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationSuccessHandler
onAuthenticationSuccess
-
Constructor Details
-
OidcLogoutAuthenticationSuccessHandler
public OidcLogoutAuthenticationSuccessHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) throws IOException, jakarta.servlet.ServletException Description copied from interface:AuthenticationSuccessHandlerCalled when a user has been successfully authenticated.- Specified by:
onAuthenticationSuccessin interfaceAuthenticationSuccessHandler- Parameters:
request- the request which caused the successful authenticationresponse- the responseauthentication- the Authentication object which was created during the authentication process.- Throws:
IOExceptionjakarta.servlet.ServletException
-
setLogoutHandler
Sets theLogoutHandlerused for performing logout.- Parameters:
logoutHandler- theLogoutHandlerused for performing logout
-