Calculate PASSWORD_CLAIM_SIGNATURE solution .NET SDK sync

0

Brief Description:

As the title says I am looking for a way to calculate the password claim signature for a PASSWORD_VERIFIER response using the .NET SDK and without async (as part of InititateAuth and the USER SRP AUTH process). From the examples I have seen and worked with this should be pretty easy once I have the correct formula.

The Details:

Every solution I find is either using devices or has information that doesn't seem to be accurate for my use case. I know for a fact I am inputting the correct user name and password but still receive a "NotAuthorizedException: Incorrect username or password" error. So this leads me to believe (along with the other troubleshooting / fixes) that it's my password claim signature formula.

Currently using this (AuthenticationHelper.AuthenticateUser) for password claim signature generation: https://github.com/aws/aws-sdk-net-extensions-cognito/tree/master/src/Amazon.Extensions.CognitoAuthentication/Util - but this appears to be calculating it wrong from the values the associated GetPasswordAuthenticationKey takes in (and at any rate doesn't seem to be working)

I would perfer not to but - if the .js version is accurate I can adapt it from: https://github.com/amazon-archives/amazon-cognito-identity-js/blob/6b87f1a30a998072b4d98facb49dcaf8780d15b0/lib/CognitoUser.js?#L299 and the associated helper scripts featured on line 291.

A possible alternate solution: https://stackoverflow.com/questions/75977941/how-do-i-use-initiateauth-command-aws-sdk-client-cognito-identity-provider-to I would love to find the SRPClient featured here as part of answer step #4, but cannot find the assembly it is part of. It looks like this might solve my problem but I am unsure about it's function with SYNC calls.

Specific Goal:

A PASSWORD_CLAIM_SIGNATURE formula for USER_SRP_AUTH PASSWORD_VERIFIER response that utilizes minimal request information.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions