mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
🐛 Bug Report: Lubelogger - LogoutURL re-directs to Pocket-ID Admin panel authentication page #345
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @truncsphere on GitHub.
Reproduction steps
I configured Lubelogger to use the logout URL of
OpenIDConfig__LogOutURL=https://example.com/api/oidc/end-session. When I go to logout of lubelogger, pocket-id asks for confirmation of signing out. Upon signing out I'm taken to the pocket-id authentication screen for the admin panel.Expected behavior
I'm expecting it to take me back to the Lubelogger authentication page. Lubelogger does not have a Logout Callback URL that I could find.
Actual Behavior
Instead of re-authenticating for Lubelogger, pocket-id asks to authenticate to the admin panel.
I do see an error in the log, but not sure how to proceed.
Version and Environment
Docker
v0.33.0
Log Output
@sevensolutions commented on GitHub:
Looks like i have the same problem while investigating https://github.com/sevensolutions/traefik-oidc-auth/issues/91.
My end-session request contains a
post_logout_redirect_urias well asid_token_hintand somestatebut the response from end-session is always a redirect tohttp://localhost:3000/logoutwhich then returns another redirect tohttp://localhost:3000/loginagain, completely loosing context.This is the full end-session url:
http://localhost:3000/api/oidc/end-session?client_id=61be4f8e-ed84-413f-9198-10c455f1fdfc&id_token_hint=eyJhbGciO....0bDw8VlIw&post_logout_redirect_uri=https%3A%2F%2Fauth.127.0.0.1.sslip.io%2Foidc%2Fcallback&state=eyJhY3Rpb24iOiJMb2dvdXQiLCJyZWRpcmVjdF91cmwiOiJodHRwczovL3RyYWVmaWsuMTI3LjAuMC4xLnNzbGlwLmlvLyJ9@stonith404 commented on GitHub:
@sevensolutions Did you add the post logout URL in Pocket ID in the client settings?
@kmendell commented on GitHub:
when you added the end session endpoint, did you completely recreate the container? I don't use lube logger but in the past with other containers, need to be fully recreated. See this issue as well: https://github.com/pocket-id/pocket-id/issues/237
@stonith404 commented on GitHub:
Pocket ID can't redirect you back because Lubelogger doesn't provide a
post_logout_redirect_uriandid_token_hint. Because of that this behavior is expected.@sevensolutions commented on GitHub:
@stonith404 yes.
@sevensolutions commented on GitHub:
Ok, I'am so sorry, this was my fault.
It looks like providing the
id_token_hintreally fixed it but i don't know why it wasn't working for the first time. Maybe some caching problem, but it's working now.I tested it two more times and it's working correctly.
@stonith404 commented on GitHub:
@sevensolutions Ok. Can you share the Pocket ID logs. Pocket ID logs the reason why you don't get redirected.