Skip to content

[#25] - include client allowed audiences in user access token#26

Merged
https-richardy merged 9 commits into
masterfrom
fix/25-include-client-allowed-audiences-in-user-access-token
Apr 25, 2026
Merged

[#25] - include client allowed audiences in user access token#26
https-richardy merged 9 commits into
masterfrom
fix/25-include-client-allowed-audiences-in-user-access-token

Conversation

@https-richardy
Copy link
Copy Markdown
Owner

Currently, in the authorization_code flow, the access token issued for the authenticated user does not include the allowed audiences configured on the requesting client.

This causes a mismatch between the client context that initiated the authentication request and the resulting user access token.

When a client requests an authorization code and exchanges it for an access token, the resulting user access token must include all allowed audiences configured for that client.

When client performs the authorization_code flow for this user, the resulting access token must include the client’s allowed audiences.

EXPECTED TOKEN PAYLOAD

{
  "sub": "user_mVScLR2bImhfQXXrjdnHflTiX",
  "client_id": "acme-corp-frontend",
  "aud": [
    "acme-corp-operations",
    "acme-corp-backoffice"
  ],
  "iss": "https://auth.acme-corp.com",
  "exp": 1710000000
}

@https-richardy https-richardy self-assigned this Apr 25, 2026
@https-richardy https-richardy merged commit 992491a into master Apr 25, 2026
5 checks passed
@https-richardy https-richardy deleted the fix/25-include-client-allowed-audiences-in-user-access-token branch April 25, 2026 14:02
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