make configurable in which part of the OIDC exchange custom claims should be sent
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- php
- Domain
- api, authentication
Research direction
Start with the OIDC-to-SAML attribute mapping table and trace the authorization code flow that sends custom claims to the userinfo endpoint or id_token. Define how the mapping supports a backwards-compatible default of userinfo, then resolve how an explicit client claims parameter should interact with the configured destination. Done means each configured custom claim is routed correctly without changing existing defaults.
Written by the indexing model from the issue text.
Description
In the authorization code flow, custom claims can be sent either in the "id_token" or by querying the "userinfo".
If the client made a preference as to where the claims should be by setting the "claims parameter", the module honours this and sends accordingly.
If no preference is indicated by the client, the module currently sends custom claims always via the userinfo endpoint. As per OIDC core spec, the claims /could/ alternatively be sent directly in the id_token.
The issue at hand suggests to make configurable where a specific custom claim should be sent. The suggested place is the OIDC-to-SAML attribute mapping table, as this lists every single claim
Example, for a hypothetical custom claim "foobar":
// The default translate table from SAML attributes to OIDC claims.
ModuleConfig::OPTION_AUTH_SAML_TO_OIDC_TRANSLATE_TABLE => [
...
'foobar' => [
'attribute' => 'urn:x-randomvendor:attibute-xyz',
'dest' => 'userinfo' # or 'id_token'
],
There should be a backwards-compatible default (single-string array defaults to "userinfo", to keep the current behaviour).
An open question is how to prioritise if the client did send a claim parameter, but the configured destination differs from the configured destination - which one wins?
- Dominant language
- PHP
- Stars
- 51
- Forks
- 27
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from simplesamlphp/simplesamlphp-module-oidc
-
prepared
Difficulty 5/5 Over a week Newbie friendliness 35/100
simplesamlphp/simplesamlphp-module-oidc#360 · 2 comments ·
-
prepared
Difficulty 3/5 1-2 days Newbie friendliness 65/100
simplesamlphp/simplesamlphp-module-oidc#358 · 2 comments ·
-
ECDSA (ES256) support issues in OIDC module (JWK generation and token verification)May be free again @cicnavi claimed this 232 days ago, and no pull request is open. Openprepared
simplesamlphp/simplesamlphp-module-oidc#334 · 1 comment · 1 assignee ·
-
Encryption key can only be stringMay be free again @cicnavi claimed this 271 days ago, and no pull request is open. Openenhancement prepared
simplesamlphp/simplesamlphp-module-oidc#332 · 1 comment · 1 assignee ·
-
ReflectionParameter::getClass() is deprecatedMay be free again @cicnavi claimed this 286 days ago, and no pull request is open. Openprepared
simplesamlphp/simplesamlphp-module-oidc#327 · 2 comments · 1 assignee ·
All issues in simplesamlphp/simplesamlphp-module-oidc
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
nhrrob/nhrrob-secure#35 ·
-
area/tests type/bug when/soon
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
Maintainers usually reply within 1 day
-
UI enters infinite reload loop when SESSION_LIFETIME > ~24.8 days (setTimeout 32-bit overflow in base.twig)Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day