Skip to content

Request aws.cognito.signin.user.admin scope for OAuth flow#211

Merged
nomadicrogue merged 2 commits into
testfrom
dev
Mar 5, 2026
Merged

Request aws.cognito.signin.user.admin scope for OAuth flow#211
nomadicrogue merged 2 commits into
testfrom
dev

Conversation

@nomadicrogue
Copy link
Copy Markdown
Collaborator

No description provided.

nomadicrogue and others added 2 commits March 5, 2026 18:06
The Cognito GetUser API (used by GET /me to resolve email from
the caller's access token) requires this scope.  Without it the
access token lacks the required claim and Cognito rejects with
NotAuthorizedException: "Access Token does not have required scopes".

Three places updated:
- Swagger UI initOAuth scopes
- OpenAPI securitySchemes scopes definition
- Per-endpoint OAuth2 security requirements

Made-with: Cursor
fix: request aws.cognito.signin.user.admin scope in OAuth flow
@nomadicrogue nomadicrogue merged commit a6f91e7 into test Mar 5, 2026
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.

1 participant