We always throw if `id_token_hint` is missing when `post_logout_redirect_uri` is used
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- php
調査の方向性
src/Server/RequestRules/Rules/PostLogoutRedirectUriRule.php のリンクされたルールから始め、ログアウト後のリダイレクトに関する RP-Initiated Logout 仕様のセクションを読みます。TODO に記載されているとおり、conformance tests が id_token_hint の欠落をどのように処理するか確認します。完了の条件は、hint の欠落だけを理由にリクエストが停止されず、仕様で許可されていない限りログアウト後のリダイレクトが行われないことです。
索引モデルが issue の本文から書いたものです。
説明
The spec RP-Initiated Logout https://openid.net/specs/openid-connect-rpinitiated-1_0.html says:
- Redirection to RP After Logout
In some cases, the RP will request that the End-User's User Agent to be redirected back to the RP after a logout has been performed. Post-logout redirection is only done when the logout is RP-initiated, in which case the redirection target is the post_logout_redirect_uri parameter value sent by the initiating RP. An id_token_hint carring an ID Token for the RP is also RECOMMENDED when requesting post-logout redirection; if it is not supplied with post_logout_redirect_uri, the OP MUST NOT perform post-logout redirection unless the OP has other means of confirming the legitimacy of the post-logout redirection target. The OP also MUST NOT perform post-logout redirection if the post_logout_redirect_uri value supplied does not exactly match one of the previously registered post_logout_redirect_uris values. The post-logout redirection is performed after the OP has finished notifying the RPs that logged in with the OP for that End-User that they are to log out the End-User.
Currently we always throw, that is, stop the execution when id_token_hint is missing when post_logout_redirect_uri is used: https://github.com/simplesamlphp/simplesamlphp-module-oidc/blob/4c254afa8a80eb869351bc6dc161479f1f4d54a2/src/Server/RequestRules/Rules/PostLogoutRedirectUriRule.php#L59
Reading the spec, since id_token_hint is RECOMMENDED, we should not stop the execution, but simply not redirect to the post_logout_redirect_uri. We could show our own "you are logged out" page instead.
- TODO mivanci check how conformance tests handle this situation
- 主要言語
- 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
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/safe-publish#594 ·
-
needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
HttpClient
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
symfony/symfony-docs#23092 ·
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 95/100