类 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
- 所有已实现的接口:
cn.herodotus.stirrup.kernel.definition.exception.HerodotusException,Serializable
- 直接已知子类:
OAuth2CaptchaArgumentIllegalException,OAuth2CaptchaHasExpiredException,OAuth2CaptchaIsEmptyException,OAuth2CaptchaMismatchException
public class OAuth2CaptchaException
extends org.springframework.security.authentication.AccountStatusException
implements cn.herodotus.stirrup.kernel.definition.exception.HerodotusException
Description: OAuth2 验证码基础 Exception
这里没有用基础定义的 PlatformAuthorizationException。主要问题是在自定义表单登录时,如果使用基础的 AuthenticationException,
在 Spring Security 标准代码中该Exception将不会抛出,而是进行二次的用户验证,这将导致在验证过程中直接跳过验证码的校验。
- 作者:
- : gengwei.zheng
- 另请参阅:
-
ProviderManager.authenticate(Authentication)- 序列化表格
- Date:
- : 2022/4/12 22:33
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.herodotus.stirrup.kernel.definition.domain.Feedbackcn.herodotus.stirrup.kernel.definition.domain.Result<String>
-
构造器详细资料
-
OAuth2CaptchaException
-
OAuth2CaptchaException
-
-
方法详细资料
-
getFeedback
public cn.herodotus.stirrup.kernel.definition.domain.Feedback getFeedback()- 指定者:
getFeedback在接口中cn.herodotus.stirrup.kernel.definition.exception.HerodotusException
-
getResult
- 指定者:
getResult在接口中cn.herodotus.stirrup.kernel.definition.exception.HerodotusException
-