OAuth2AccessTokenApiResultResponseAuthenticationSuccessHandler
class OAuth2AccessTokenApiResultResponseAuthenticationSuccessHandler @JvmOverloads constructor(authenticationLogRecorder: AuthenticationLogRecorder? = AuthenticationLogRecorder.noop(), authorizationService: OAuth2AuthorizationService? = null, oauth2Properties: Oauth2Properties? = null, jsonMapper: JsonMapper) : AuthenticationSuccessHandler
OAuth2 访问令牌成功响应处理器
在认证成功后写回统一的令牌响应,并记录认证日志
Constructors
Link copied to clipboard
constructor(authenticationLogRecorder: AuthenticationLogRecorder? = AuthenticationLogRecorder.noop(), authorizationService: OAuth2AuthorizationService? = null, oauth2Properties: Oauth2Properties? = null, jsonMapper: JsonMapper)
Functions
Link copied to clipboard
open override fun onAuthenticationSuccess(request: HttpServletRequest, response: HttpServletResponse, authentication: Authentication)
将访问令牌响应写入统一 JSON,并记录认证成功日志
open fun onAuthenticationSuccess(request: HttpServletRequest, response: HttpServletResponse, chain: FilterChain, authentication: Authentication)