Class OttAuthenticationSuccessHandler
java.lang.Object
com.irurueta.authserver.authorization.api.web.ott.OttAuthenticationSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class OttAuthenticationSuccessHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Forgets the pending token of the session once it was used, then lets the delegate resume the request the sign-in
interrupted.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.web.authentication.AuthenticationSuccessHandlerResumes the interrupted request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Clears the pending token and delegates.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
-
Field Details
-
delegate
private final org.springframework.security.web.authentication.AuthenticationSuccessHandler delegateResumes the interrupted request.
-
-
Constructor Details
-
OttAuthenticationSuccessHandler
public OttAuthenticationSuccessHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException Clears the pending token and delegates.- Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Parameters:
request- the request.response- the response.authentication- the authentication.- Throws:
IOException- if the delegate cannot redirect.jakarta.servlet.ServletException- if the delegate fails.
-