类 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
另请参阅:
Date:
: 2022/4/12 22:33
  • 构造器详细资料

    • OAuth2CaptchaException

      public OAuth2CaptchaException(String msg)
    • OAuth2CaptchaException

      public OAuth2CaptchaException(String msg, Throwable cause)
  • 方法详细资料

    • getFeedback

      public cn.herodotus.stirrup.kernel.definition.domain.Feedback getFeedback()
      指定者:
      getFeedback 在接口中 cn.herodotus.stirrup.kernel.definition.exception.HerodotusException
    • getResult

      public cn.herodotus.stirrup.kernel.definition.domain.Result<String> getResult()
      指定者:
      getResult 在接口中 cn.herodotus.stirrup.kernel.definition.exception.HerodotusException