在我的 AccountLockHandler 中抛出 Utils.handleClientException?

问题描述

现在,当我尝试使用锁定帐户登录时收到 AccountLockException。所以我尝试将错误发送到 error.jsp 并导入 org.wso2.carbon.identity.recovery,我使用了
throw Utils.handleClientException(IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_LOCKED_ACCOUNT,userName).
但它没有显示带有我的错误消息的 error.jsp。是否可以在 AccountLockHandler 中执行此操作(例如在 org.wso2.carbon.identity.recovery.password.NotificationPasswordRecoveryManager 中的 checkAccountLockedStatus 中)?

解决方法

通过在我的 basicAuthenticator 中添加检查并将查询参数添加到我的响应中来解决