Skip to content

Commit

Permalink
Merge pull request #181 from Rashmini/recovery-v2
Browse files Browse the repository at this point in the history
Handle error scenarios related to recovery flow id
  • Loading branch information
Rashmini authored Oct 2, 2023
2 parents a8d3ec8 + 8c02dad commit 0904907
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ public static WebApplicationException handleIdentityRecoveryException(IdentityRe
} else if (IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_INVALID_RECOVERY_CODE.getCode().equals(
e.getErrorCode()) || IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_INVALID_RESEND_CODE.getCode().
equals(e.getErrorCode()) || IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_EXPIRED_RECOVERY_CODE.
getCode().equals(e.getErrorCode())) {
getCode().equals(e.getErrorCode()) || IdentityRecoveryConstants.ErrorMessages.
ERROR_CODE_INVALID_RECOVERY_FLOW_ID.getCode().equals(e.getErrorCode()) || IdentityRecoveryConstants.
ErrorMessages.ERROR_CODE_EXPIRED_RECOVERY_FLOW_ID.getCode().equals(e.getErrorCode()) ||
IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_NO_RECOVERY_FLOW_DATA.getCode().equals(
e.getErrorCode())) {
errorMessage = Constants.STATUS_METHOD_NOT_ACCEPTED_MESSAGE_DEFAULT;
status = Response.Status.NOT_ACCEPTABLE;
} else if (IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_PASSWORD_HISTORY_VIOLATION.getCode().equals(
Expand Down

0 comments on commit 0904907

Please sign in to comment.