Skip to content
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

AWS Cognito issues codes which are invalid grants when using AWS SDK 3.263.15 and AWS CRT 1.2.4 #110

Closed
tim-hitchins-ekkosense opened this issue Mar 21, 2024 · 0 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@tim-hitchins-ekkosense
Copy link

Describe the bug

When I have AWS SDK 3.263.15 and AWS CRT 1.2.4 installed, the login code returned by Cognito is not valid - a curl to https://user-pool-name.auth.eu-west-1.amazoncognito.com/oauth2/token with that code gives {"error":"invalid_grant"}.

Expected Behavior

The code returned should be valid and a request to /oauth2/token with the code should give a valid token.

Current Behavior

The code returned is not valid and a request to /oauth2/token gives {"error":"invalid_grant"}

Reproduction Steps

Attempting to assemble one

Possible Solution

No response

Additional Information/Context

This does not happen in version 1.2.3 with the same AWS SDK

aws-crt-php version used

1.2.4

php version used

8.1.18 Zend Engine v4.1.18

Operating System and version

Ubuntu 22.04.3 LTS in WSL

@tim-hitchins-ekkosense tim-hitchins-ekkosense added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant