You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emit sub_id (RFC 9493) with the user's upstream identity in access tokens #6900
Problem: a client that hosts sessions for a user (for example Mecatl) needs to know which person at the company identity provider a token belongs to, so it can make that person the owner of their sessions. The access tokens this authorization server issues carry only its own sub.
Change:
Add sub_id (RFC 9493) to access tokens issued at login: {"format": "iss_sub", "iss": "<upstream issuer>", "sub": "<upstream subject>"}.
The value comes from the authenticated upstream identity at the callback, never from client input or a request parameter.
Omitted for synthetic identities (an upstream with no stable subject, for example an OAuth2 provider without userinfo).
Configurable per client or audience, so the upstream identity is not disclosed where it is not wanted.
No dependency on token-exchange work.
Acceptance: a token from an OIDC upstream login carries the correct issuer and subject pair; a synthetic login carries no sub_id; a client not configured for it receives none.
Activity
Add opt-in upstream subject identifiers
Add opt-in upstream subject identifiers
Add opt-in upstream subject identifiers (stacklok#6908)