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
Extract groups and namespaces claims from JWT token #6088
Is your feature request related to a problem? Please describe.
OidcTokenParser only extracts username and roles from the JWT. The groups and namespaces claims are ignored, so GroupBasedPolicy and NamespaceBasedPolicy never match for OIDC-authenticated users.
Describe the solution you'd like
Extract groups and namespaces claims from the decoded JWT in OidcTokenParser.user_details_from_access_token() and pass them to the User object. Default to empty list if the claims are absent.
Describe alternatives you've considered
None — the User model, policy classes, and enforcer already support groups and namespaces. Only the OIDC parser is missing the extraction.
Activity