mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(cognito): reject unconfirmed users in SRP auth (#2027)
This commit is contained in:
1 parent
76f602fafa
commit
733c72d02a
2 files changed
+46
No files matched your search
@@ -328,6 +328,9 @@ final class CognitoAuthFlowHandler {
|
||||
if ("RESET_REQUIRED".equals(user.getUserStatus())) {
|
||||
throw new AwsException("PasswordResetRequiredException", "Password reset required", 400);
|
||||
}
|
||||
if ("UNCONFIRMED".equals(user.getUserStatus())) {
|
||||
throw new AwsException("UserNotConfirmedException", "User is not confirmed", 400);
|
||||
}
|
||||
if (user.getSrpVerifier() == null) {
|
||||
throw new AwsException("NotAuthorizedException", "User does not support SRP auth", 400);
|
||||
}
|
||||
@@ -386,6 +389,9 @@ final class CognitoAuthFlowHandler {
|
||||
if ("RESET_REQUIRED".equals(user.getUserStatus())) {
|
||||
throw new AwsException("PasswordResetRequiredException", "Password reset required", 400);
|
||||
}
|
||||
if ("UNCONFIRMED".equals(user.getUserStatus())) {
|
||||
throw new AwsException("UserNotConfirmedException", "User is not confirmed", 400);
|
||||
}
|
||||
if (user.getSrpVerifier() == null) {
|
||||
throw new AwsException("NotAuthorizedException", "User does not support SRP auth", 400);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user