Class OAuth2CaptchaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.authentication.AccountStatusException
cn.herodotus.engine.oauth2.core.exception.OAuth2CaptchaException
- All Implemented Interfaces:
cn.herodotus.engine.assistant.definition.exception.HerodotusException,Serializable
- Direct Known Subclasses:
OAuth2CaptchaArgumentIllegalException,OAuth2CaptchaHasExpiredException,OAuth2CaptchaIsEmptyException,OAuth2CaptchaMismatchException
public class OAuth2CaptchaException
extends org.springframework.security.authentication.AccountStatusException
implements cn.herodotus.engine.assistant.definition.exception.HerodotusException
Description: OAuth2 验证码基础 Exception
这里没有用基础定义的 PlatformAuthorizationException。主要问题是在自定义表单登录时,如果使用基础的 AuthenticationException,
在 Spring Security 标准代码中该Exception将不会抛出,而是进行二次的用户验证,这将导致在验证过程中直接跳过验证码的校验。
- Author:
- : gengwei.zheng
- See Also:
-
ProviderManager.authenticate(Authentication)- Serialized Form
- Date:
- : 2022/4/12 22:33
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.assistant.definition.domain.Feedbackcn.herodotus.engine.assistant.definition.domain.Result<String>Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth2CaptchaException
-
OAuth2CaptchaException
-
-
Method Details
-
getFeedback
public cn.herodotus.engine.assistant.definition.domain.Feedback getFeedback()- Specified by:
getFeedbackin interfacecn.herodotus.engine.assistant.definition.exception.HerodotusException
-
getResult
- Specified by:
getResultin interfacecn.herodotus.engine.assistant.definition.exception.HerodotusException
-