-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StartWithSrpAuthAsync fails with a parse exception #48
Comments
OK I guess this happens when trying to initiateAuth using an email which hasn't been verified yet. The fix for me is to specify Not sure if any action needs to be taken to handle that particular case, otherwise I can close this |
Thanks for the feedback. I'll look into whether we can use the signed salt values. I don't want to recommend setting |
Getting the same issue. However, do not want to set email_verified as true as I need to log in to obtain a session from which I can call ResponseToNewPasswordRequiredAsync in order to change the temporary password (and confirm the email) |
Having the same issue where I use Email as UserName for not activated accounts. This way I can't response to challenge and require to validate Email by providing validation code in next step. |
I have email_verified as true and I'm getting the same issue |
|
Hi @efess, Good afternoon. I was going through the issue backlog and came across this issue. I tested the functionality and it appears that AWSSDK.Extensions.CognitoAuthentication Version: 0.9.4 Please confirm if we could close this issue. Thanks, |
@ashishdhingra the issue is when you try to initiate auth using an email address which has not been verified yet. This will throw an exception within the library rather than any useful information telling the user that the email address needs to be verified first. Edit: If it's not reproducible, please close it. I'm off the project which I originally experienced this issue so I cannot test myself. |
Hi @timcromarty / @dtarczynski / @vazquezbonilla / @DevonHansen, Good afternoon. Please review the above comments and let me know if this is still an issue. Else, since the issue is not reproducible, we could close this issue. Thanks, |
This seems to have fixed itself for me overnight. I don't manage our Cognito instance so can't say for certain if something has changed there. I was previously testing with |
I'll look to see if I can replicate sometime today. We have a workaround where we assume that FormatException is a reason to not log the person in for invalid details. |
This issue has not recieved a response in 2 weeks. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
I have a cognito user pool built using the email as a sign-in alias. When I use
user_1@someemail.com
as a username using StartWithSrpAuthAsync, the library throws an exception "The value could not be parsed."I narrowed this down to the fact the salt string is a negative hex value, which the lib is assuming is always unsigned. This error is occuring in AuthenticationHelper.cs:
var salt = BigIntegerExtensions.FromLittleEndianHex(saltString);
Is it possible to support signed salt values here? I tried this in nodejs Amplify and they seem to handle it w/o an issue.
The text was updated successfully, but these errors were encountered: