Skip to content

fix: use lowercase OAuth scopes to fix google login failures#14323

Merged
dgandhi62 merged 2 commits intoaws-amplify:gen2-migrationfrom
dgandhi62:codegen-auth-gen-v2
Nov 5, 2025
Merged

fix: use lowercase OAuth scopes to fix google login failures#14323
dgandhi62 merged 2 commits intoaws-amplify:gen2-migrationfrom
dgandhi62:codegen-auth-gen-v2

Conversation

@dgandhi62
Copy link
Copy Markdown
Contributor

@dgandhi62 dgandhi62 commented Nov 5, 2025

This fix is based on the issue where incorrect scopes caused failed online Google OAuth login

  • Change OAuth scope type from uppercase to lowercase format
  • Fix test cases to use lowercase scopes

Source of truth - https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Change OAuth scope type from uppercase to lowercase format
- Update scope values: 'EMAIL' -> 'email', 'OPENID' -> 'openid', etc.
- Fix test cases to use lowercase scopes
- Aligns with OAuth 2.0 standards and existing Amplify CLI implementation
@dgandhi62 dgandhi62 requested a review from a team as a code owner November 5, 2025 21:13
@dgandhi62 dgandhi62 merged commit b9b0bb6 into aws-amplify:gen2-migration Nov 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants