Class OAuth2AccessTokenResponseHandler
java.lang.Object
cn.herodotus.engine.oauth2.management.response.OAuth2AccessTokenResponseHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class OAuth2AccessTokenResponseHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Description: 自定义 Security 认证成功处理器
- Author:
- : gengwei.zheng
- Date:
- : 2022/2/25 16:53
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AccessTokenResponseHandler(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) 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
-
OAuth2AccessTokenResponseHandler
public OAuth2AccessTokenResponseHandler(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor)
-
-
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 - Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Throws:
IOExceptionjakarta.servlet.ServletException
-