We always throw if `id_token_hint` is missing when `post_logout_redirect_uri` is used
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- php
- Área
- authentication
Línea de trabajo
Empieza por src/Server/RequestRules/Rules/PostLogoutRedirectUriRule.php en la regla enlazada y lee la sección de la especificación RP-Initiated Logout sobre la redirección posterior al logout. Comprueba cómo gestionan las pruebas de conformidad la ausencia de un id_token_hint, tal como se indica en el TODO. Se considera terminado cuando la solicitud no se detiene únicamente por la ausencia del hint y la redirección posterior al logout se retiene a menos que la especificación la permita.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 50
- Forks
- 28
- Merge medio
- 1 min
- PR fusionados (30 d)
- 2
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de simplesamlphp/simplesamlphp-module-oidc
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
simplesamlphp/simplesamlphp-module-oidc#360 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
simplesamlphp/simplesamlphp-module-oidc#358 · 1 comentario ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#334 · 1 comentario · 1 asignado ·
-
enhancement prepared
simplesamlphp/simplesamlphp-module-oidc#332 · 1 comentario · 1 asignado ·
-
prepared
simplesamlphp/simplesamlphp-module-oidc#327 · 2 comentarios · 1 asignado ·
Todos los issues de simplesamlphp/simplesamlphp-module-oidc
Issues similares
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Automattic/safe-publish#594 ·
-
needs-triage Platform(Default)
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
HttpClient
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
symfony/symfony-docs#23092 ·
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100