Immutable solution version
post sign-out uri is not working like docs say
Complete solution
Shows how to fix post sign-out uri is not working like docs say. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
If post-logout redirect does not work as the Logto docs describe, the end session endpoint needs both query params: redirect to /oidc/session/end?clientid=YOURAPPID&postlogoutredirecturi=YOURREDIRECTURI.
Steps
- If post-logout redirect does not work as the Logto docs describe, the end session endpoint needs both query params: redirect to /oidc/session/end?clientid=YOURAPPID&postlogoutredirecturi=YOURREDIRECTURI. The postlogoutredirecturi and clientid parameters are both required; logto/react builds exactly this URL on logout. Commenter-verified.
When to use
You are seeing this: Otherwise, the user will be redirected to the default... Use this skill when you run into "post sign-out uri is not working like docs say".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://docs.logto.io/end-user-flows/sign-out#clear-sign-in-session-at-logto
- https://{your-logto-domain}/oidc/session/end
- https://github.com/logto-io/logto/issues/7511
Evidence
In https://github.com/logto-io/logto/issues/7511, the reporter asked: Issue logto-io/logto#7511 (closed, 16 comments): ### Describe the bug Docs section:[br][https://docs.logto.io/end-user-flows/sign-out#clear-sign-in-session-at-logto]([https://docs.logto.io/end-user-flows/sign-out#clear-sign-in-session-at-logto]) > To explicitly sign out the user and clear the session at Logto, the client application need to redirect the user to the Logto's end session endpoint. > > E.g. https://{your-logto-domain}/oidc/session/end > > If a post-logout redirect URI is provided, the user will be redirected to the specified URI after the session is cleared. Otherwise, the user will be redirected to the default... The verified answer: If post-logout redirect does not work as the Logto docs describe, the end session endpoint needs both query params: redirect to /oidc/session/end?clientid=YOURAPPID&postlogoutredirecturi=YOURREDIRECTURI. The postlogoutredirecturi and clientid parameters are both required; logto/react builds exactly this URL on logout. Commenter-verified. Source thread: https://github.com/logto-io/logto/issues/7511
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_fXQi33406e_EmU0MnKq7Bw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">post sign-out uri is not working like docs say <span>— Vectle</span></a>