mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🐛 Bug Report: using end_session_endpoint with Audiobookshelf causes ABS to log back in #360
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 @EweSparky on GitHub.
Reproduction steps
I updated my Audiobookshelf instance with an OIDC logout URL of
https://id.example.com/api/oidc/end-sessionin Settings > Authentication. ABS doesn't have its own logout callback URL, so I left that parameter blank in Pocket ID > OIDC Clients > Audiobookshelf configuration.I open an incognito tab, log into ABS with Pocket ID, get redirected back to ABS, click on my username and click on Logout.
Expected behavior
ABS redirects to Pocket ID and asks if I want to log out of Audiobookshelf.
Actual Behavior
ABS redirects to Pocket ID, which then reauthenticates me and logs me back into ABS.
It does work with Nextcloud oidc_client NC app (see logs below), so I'm not sure if the problem is Pocket ID or ABS (or my config).
Version and Environment
Docker version 27.5.1, build 9f9e405
Docker Compose version v2.32.4
Pocket ID version 0.33.0
Log Output
Here are logs showing:
@stonith404 commented on GitHub:
It seems like Audiobookshelf doesn't call the end session endpoint.
Make sure that "Logout URL" is set to "https://your-pocket-id-domain/api/oidc/end-session" in Audiobookshelf. Additionally try to restart the Audiobookshelf container because when I tried it, it only worked after I restarted the container.
@EweSparky commented on GitHub:
Restarting fixed it; I already had the session endpoint configured in ABS. I didn't have to recreate the container when I added the end session endpoint to Nextcloud, so maybe ABS had cached something.
Thanks.