make configurable in which part of the OIDC exchange custom claims should be sent
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- php
- 領域
- api, authentication
調査の方向性
OIDC-to-SAML 属性マッピングテーブルから始め、custom claims を userinfo endpoint または id_token に送信する authorization code flow を追跡します。マッピングが userinfo の後方互換なデフォルトをどのようにサポートするかを定義し、そのうえで、明示的なクライアントの claims パラメーターが設定された送信先とどのように相互作用すべきかを明らかにします。既存のデフォルトを変更せず、設定された各 custom claim が正しくルーティングされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- PHP
- スター
- 50
- フォーク
- 28
- 平均マージ
- 1分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simplesamlphp/simplesamlphp-module-oidc のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
simplesamlphp/simplesamlphp-module-oidc#360 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
simplesamlphp/simplesamlphp-module-oidc#358 · コメント 1 件 ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#334 · コメント 1 件 · 担当者 1 名 ·
-
enhancement prepared
simplesamlphp/simplesamlphp-module-oidc#332 · コメント 1 件 · 担当者 1 名 ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#327 · コメント 2 件 · 担当者 1 名 ·
simplesamlphp/simplesamlphp-module-oidc の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
Перевод устарел
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100