-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to pass SECRET_HASH value to cognito user pool from Gen 2 auth library signIn() method #13568
Comments
Hey👋 thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂 |
Hello, @sagshar5 and thanks for creating this issue. To address the question on Gen 2 support, this is NOT currently supported out of the box at this time. As such, we'll mark this as a feature request. We'll follow up with any additional questions or updates we have on this from here, but feel free to add any additional context for use cases or implementations you're looking for in Gen 2 as well. Thanks! |
@sagshar5, did you run into this only after upgrading to v6 or using Gen2? |
Having same issue, does anyone know a workaround? |
You have to disable the client secret when you create the userPool. Unfortunately you cannot disable the client secret for a created userPool as far as I can see. |
This is very frustrating! Can't believe that amplify doesn't support the The workaround we used was to use
|
@cwomack is there an update this on this? I'm running into the same issue. This just feels like a half baked solution. Pretty poor for AWS standards. |
@zammitjames don't have any updates yet, but appreciate the feedback and additional comment on this. The more upvotes, followers, and comments we get from the community on feature requests like this help us gauge the interest. I'll bring it back through to the team and if there's any further updates I'll follow up with another comment (likely after the holidays). |
I recently encountered the same issue while integrating AWS Cognito with an Elastic Load Balancer (ELB). ELB requires the use of a client secret, but our ReactJS client cannot leverage Amplify to send this information directly with signIn(). This presents another use case for supporting SECRET_HASH, which I hope your team can take into consideration. |
@Vinci08, thanks for adding this context to the issue. We're reviewing this internally as a feature request and will update with another comment on any progress or news regarding this. |
I just encountered this and had to patch locally to get it working. It's also missing from sendCustomChallengeAnswer. For my purposes, I've overloaded clientMetadata to avoid changing the signature of the functions |
Environment information
Description
An Amazon Cognito user pool enabled with Client secret is imported to Amplify Gen 2 project.
Unable to find any way to pass Secret_hash value to cognito using auth library signIn() or signUp() method.
Sample signIn()
Using above signUp() method, can see in browser console that the secretHash value is passed. However, still getting :
Can you please advise if we can use Amplify Gen 2 with Cognito user pool having client enabled client secret ?
The text was updated successfully, but these errors were encountered: