r/selfhosted • u/Squanchy2112 • May 08 '25
Wiki's Authentik OIDC and Bookstack
I have bookstack setup with authentik and autologin and its awesome, I did have a user today that found an issue. When you logout of bookstack is does not kick you to the authentik logout page, like the one where it says logout of bookstack,logout of authentik, go to dashboard. Bookstack will just logout, this is dangerous as it keeps authentik logged in. I wanted to see if anyone know what to do to fix this as I am sure its some issue with my bookstack config, maybe with a url or something.
1
Upvotes
View all comments
Show parent comment
2
u/ssddanbrown May 09 '25
Thanks!
So currently BookStack can talk to the auth provider and say "This user has just logged out, so now we're sending them over to you to log-out of the auth system (or provide options to do so)". This is what's called "RP-initiated logout".
What can't be done is the reverse. The auth provider can't (directly) talk to BookStack about performing a log-out on the BookStack side. This means log-outs triggered outside of BookStack (In the auth system, or other connected apps) won't cause a log-out for the user within BookStack if they have an active session. This is called "Front/Back channel logout" with front-channel being via the user's browser in some sort of way, and back-channel being direct auth-server to OIDC application (server-to-server).
I'll note that the above doesn't mean the users would remain logged into BookStack forever (by default). The session expiry is still considered (which means users logged in via OIDC would be auto-logged out regardless when they have no activity after the session timeout time, which by default is 2 hours).