Skip to content

Commit 981b779

Browse files
committed
Work on end_session_endpoint
1 parent c9201d7 commit 981b779

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/sections/sessionmanagement.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Parameters that are passed as query parameters in the logout request:
4242

4343
Example redirect::
4444

45-
http://localhost:8000/end-session/?id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6ImQwM...&post_logout_redirect_uri=http://rp.example.com/logged-out/&state=c91c03ea6c46a86
45+
http://localhost:8000/end-session/?id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6ImQwM...&post_logout_redirect_uri=http%3A%2F%2Frp.example.com%2Flogged-out%2F&state=c91c03ea6c46a86
4646

4747
**Logout consent prompt**
4848

@@ -55,6 +55,14 @@ We enforce this behavior by displaying a logout consent prompt if it detects any
5555

5656
If the user confirms the logout request, we continue the logout flow. To modify the logout consent template create your own ``oidc_provider/end_session_prompt.html``.
5757

58+
**Other scenarios**
59+
60+
In some cases, there may be no valid redirect URI for the user after logging out (e.g., the OP could not find a post-logout URI). If the user ends up being logged out, the system will render the ``oidc_provider/end_session_completed.html`` template.
61+
62+
On the other hand, if the session remains active for any reason, the ``oidc_provider/end_session_failed.html`` template will be used.
63+
64+
Both templates will receive the ``{{ client }}`` variable in their context.
65+
5866
Example RP iframe
5967
=================
6068

0 commit comments

Comments
 (0)