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

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.security.web.authentication.AuthenticationSuccessHandler
    Resumes the interrupted request.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAuthenticationSuccess(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, wait

    Methods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler

    onAuthenticationSuccess
  • Field Details

    • delegate

      private final org.springframework.security.web.authentication.AuthenticationSuccessHandler delegate
      Resumes 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:
      onAuthenticationSuccess in interface org.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.