Class AuthorizationCodeResponseHandler
java.lang.Object
com.irurueta.authserver.authorization.api.web.implicit.AuthorizationCodeResponseHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class AuthorizationCodeResponseHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
The framework's own answer to a granted authorization code request, repeated because installing a response handler
replaces it and the framework does not expose it: a redirect to the redirect URI with
code and, when the
request had one, state in the query.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Redirects the user agent with the authorization code.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
-
Constructor Details
-
AuthorizationCodeResponseHandler
public AuthorizationCodeResponseHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException Redirects the user agent with the authorization code.- Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Parameters:
request- the request.response- the response.authentication- the result, anOAuth2AuthorizationCodeRequestAuthenticationToken.- Throws:
IOException- if the response cannot be written.
-