抛出WSO2 IS 5.0.0错误,然后以锁定用户身份登录

时间:2015-12-14 22:22:22

标签: wso2is

使用WSO2 IS 5.0.0并将用户帐户设置为已锁定http://wso2.org/claims/identity/accountLocked时,我们会在登录页面回发时收到以下错误。

Authentication Error !
Something went wrong during the authentication process. Please try signing in again.

如果用户已解锁并重新尝试登录,则他们将成功登录。

当查看IS上的wso2carbon.log时,我们只会看到此错误消息。

WARN {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} -  User account is locked for user : <user>. cannot login until the account is unlocked  {org.wso2.carbon.identity.mgt.IdentityMgtEventListener}

有没有办法防止此异常或捕获它以便登录页面不会被异常消息替换?

1 个答案:

答案 0 :(得分:2)

Identity Server登录页面位于身份验证端点Web应用程序[1]中。由于凭据无效,用户和帐户锁定无效等原因,可能会发生登录失败。它可以配置身份服务器发送登录失败的确切原因[2]。

因此,可以根据登录失败自定义Web应用程序。 (在您的情况下帐户锁定)

[1] https://docs.wso2.com/display/IS500/Customizing+Login+Pages [2] https://docs.wso2.com/display/IS500/Customizing+Error+Messages