public class OAuth2CaptchaException
extends org.springframework.security.authentication.AccountStatusException
implements cn.herodotus.engine.assistant.core.definition.exception.HerodotusException
Description: OAuth2 验证码基础 Exception
这里没有用基础定义的 PlatformAuthorizationException。主要问题是在自定义表单登录时,如果使用基础的 AuthenticationException,
在 Spring Security 标准代码中该Exception将不会抛出,而是进行二次的用户验证,这将导致在验证过程中直接跳过验证码的校验。
ProviderManager.authenticate(Authentication),
序列化表格| 构造器和说明 |
|---|
OAuth2CaptchaException(String msg) |
OAuth2CaptchaException(String msg,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.herodotus.engine.assistant.core.domain.Feedback |
getFeedback() |
cn.herodotus.engine.assistant.core.domain.Result<String> |
getResult() |
public OAuth2CaptchaException(String msg)
public cn.herodotus.engine.assistant.core.domain.Feedback getFeedback()
getFeedback 在接口中 cn.herodotus.engine.assistant.core.definition.exception.HerodotusExceptionpublic cn.herodotus.engine.assistant.core.domain.Result<String> getResult()
getResult 在接口中 cn.herodotus.engine.assistant.core.definition.exception.HerodotusExceptionCopyright © 2023 Dromara. All rights reserved.