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

for id tokens with group scope always use full arns #2157

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

havetisyan
Copy link
Collaborator

when the calling is asking for an id token with groups claim that include the groups scope, then we must always use the full arn. Otherwise, if we have a role called writers and a group called writers, then with full arn set to false, we'll get groups claim with the same "writers" value which would be ambiguous and result in wrong authorization calls. Now, with roles scope , we'll get either "writers" or "athenz:role.writers" as the groups claims value and with groups scope we'll get "athenz:group:writers" groups claim - no longer ambiguous.

@abvaidya abvaidya merged commit d96edd4 into master May 2, 2023
@abvaidya abvaidya deleted the group-id-token branch May 2, 2023 20:56
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