We always throw if `id_token_hint` is missing when `post_logout_redirect_uri` is used
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- php
- Ambito
- authentication
Direzione di ricerca
Inizia da src/Server/RequestRules/Rules/PostLogoutRedirectUriRule.php nella regola collegata e leggi la sezione della specifica RP-Initiated Logout sul reindirizzamento post-logout. Verifica come i test di conformità gestiscono l’assenza di un id_token_hint, come indicato nel TODO. Il lavoro è completato quando la richiesta non viene bloccata esclusivamente a causa dell’hint mancante e il reindirizzamento post-logout viene impedito a meno che la specifica non lo consenta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- PHP
- Stelle
- 50
- Fork
- 28
- Merge medio
- 1m
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di simplesamlphp/simplesamlphp-module-oidc
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
simplesamlphp/simplesamlphp-module-oidc#360 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
simplesamlphp/simplesamlphp-module-oidc#358 · 1 commento ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#334 · 1 commento · 1 assegnatario ·
-
enhancement prepared
simplesamlphp/simplesamlphp-module-oidc#332 · 1 commento · 1 assegnatario ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#327 · 2 commenti · 1 assegnatario ·
Tutte le issue di simplesamlphp/simplesamlphp-module-oidc
Issue simili
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
-
Перевод устарел
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100