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
fix: make standard OIDC scopes optional in credential matching
Previously, standard OIDC scopes like 'openid' were explicitly excluded
from credential matching. This was problematic because:
1. The 'openid' scope is REQUIRED by the OIDC specification - clients
cannot remove it
2. It should be possible to optionally configure a credential to match
the 'openid' scope if desired
This change makes standard OIDC scopes (openid, profile, email, address,
phone, offline_access) optional for credential matching:
- If a scope has a corresponding credential configuration, it will match
- If a scope has no configuration, it is silently skipped
- The existing 'no match found' logic handles unconfigured scopes gracefully
Changes:
- client.go: Removed explicit 'openid' exclusion in buildLegacyDCQLQuery
- presentation_builder.go: Updated BuildDCQLQuery and scopesMatch to not
filter standard scopes
- Exported StandardOIDCScopes and FilterStandardScopes as utility
functions for when filtering is specifically needed
0 commit comments