OAuth2ErrorApiResultAuthenticationFailureHandler

class OAuth2ErrorApiResultAuthenticationFailureHandler @JvmOverloads constructor(authenticationLogRecorder: AuthenticationLogRecorder? = AuthenticationLogRecorder.noop(), oauth2Properties: Oauth2Properties? = null, jsonMapper: JsonMapper) : AuthenticationFailureHandler

OAuth2 认证失败处理器

将认证异常转换为统一的 JSON 错误响应并记录认证日志

Constructors

constructor(authenticationLogRecorder: AuthenticationLogRecorder? = AuthenticationLogRecorder.noop(), oauth2Properties: Oauth2Properties? = null, jsonMapper: JsonMapper)

Functions

Link copied to clipboard
open override fun onAuthenticationFailure(request: HttpServletRequest, response: HttpServletResponse, authenticationException: AuthenticationException)

处理认证失败