You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickstart configuration includes a logout config logout: http://127.0.0.1:3000/logout, and there's also a logout page in the sample app which are not working for me. There's no logout button, so by looking in the API Reference docs I found the oauth2/sessions/logout endpoint. It does not redirect to the configured logout page as would be expected to complete the logout challenge flow (adminGetOAuth2LogoutRequest followed by adminAcceptOAuth2LogoutRequest). Am I missing something? Looked through the source code, and I see it trying to redirect here:
But it's getting stuck somewhere? Planning to debug it myself, but wanted to create an issue in case anyone else has experienced similar or else I'm simply missing some config.
After logging in, navigate in the browser to oauth2/sessions/logout
Expected to be redirected to the logout page http://127.0.0.1:3000/logout to complete the logout flow but instead am redirected to default post logout URL.
The only error in the logs is:
hydra-1 | time=2024-12-19T19:57:30Z level=error msg=A request failed because configuration key "urls.post_logout_redirect" is missing or malformed. audience=application service_name=Ory Hydra service_version=v2.2.0
I tried setting the post_logout_redirect config, and it does redirect there. However, it still never redirects to http://127.0.0.1:3000/logout with a logout challenge.
Preflight checklist
Ory Network Project
No response
Describe the bug
The quickstart configuration includes a logout config
logout: http://127.0.0.1:3000/logout
, and there's also a logout page in the sample app which are not working for me. There's no logout button, so by looking in the API Reference docs I found theoauth2/sessions/logout
endpoint. It does not redirect to the configured logout page as would be expected to complete the logout challenge flow (adminGetOAuth2LogoutRequest
followed byadminAcceptOAuth2LogoutRequest
). Am I missing something? Looked through the source code, and I see it trying to redirect here:hydra/consent/strategy_default.go
Line 878 in 3a09db2
Reproducing the bug
oauth2/sessions/logout
http://127.0.0.1:3000/logout
to complete the logout flow but instead am redirected to default post logout URL.Screen recording of steps to reproduce below:
https://github.com/user-attachments/assets/6ef6dbbf-c5b5-4f65-b35d-e4d1b340d1af
Relevant log output
I tried setting the post_logout_redirect config, and it does redirect there. However, it still never redirects to http://127.0.0.1:3000/logout with a logout challenge.
Version
v2.2 and master
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: