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:
Date:
: 2022/4/12 22:33
  • Constructor Details

    • OAuth2CaptchaException

      public OAuth2CaptchaException(String msg)
    • OAuth2CaptchaException

      public OAuth2CaptchaException(String msg, Throwable cause)
  • Method Details

    • getFeedback

      public cn.herodotus.engine.assistant.definition.domain.Feedback getFeedback()
      Specified by:
      getFeedback in interface cn.herodotus.engine.assistant.definition.exception.HerodotusException
    • getResult

      public cn.herodotus.engine.assistant.definition.domain.Result<String> getResult()
      Specified by:
      getResult in interface cn.herodotus.engine.assistant.definition.exception.HerodotusException