mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
With SAML/SSO enabled, Logout logs out of the IDP but Bookstack still thinks I am authenticated #2090
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 @tmrhymer on GitHub (Feb 11, 2021).
Describe the bug
With SAML/SSO enabled, Clicking the Logout button logs users out of the IDP but Bookstack still thinks they are authenticated and they can still navigate Bookstack, even if they close and reopen their browser. This seems to be cookie session related. If you delete the cookies for Bookstack, XSRF-TOKEN and bookstack_session, you get prompted to authenticate again.
Steps To Reproduce
With SAML/SSO enabled for authentication
Expected behavior
Clicking the logout button should log us out of both the IDP and Bookstack.
Your Configuration (please complete the following information):
Additional context
Add any other context about the problem here.
@ssddanbrown commented on GitHub (Feb 12, 2021):
Hi @jimmyc802,
Can you confirm and details about your SSO system at all? Are you using ADFS or another popular offering?
@tmrhymer commented on GitHub (Feb 12, 2021):
Hey Dan! We are using Azure AD Enterprise Applications. Here is our SAML config on the Azure AD side and our SAML config in bookstack:
@ssddanbrown commented on GitHub (Feb 12, 2021):
Thanks @jimmyc802 for the extra context.
There are various other SAML single logout issues here, particularly around Microsoft systems but authentication issues are particularly difficult & time consuming to test, review & action; especially surrounding systems that I have limited or no access to.
I'm trying to get through some of the pending SAML issues/prs in this release cycle though.
If you need something urgently it might be worth having a search across those issues or PRs as sometimes people will post patches or workarounds.
@tmrhymer commented on GitHub (Feb 17, 2021):
I'll keep an eye out. Let me know if you hear of anything in the meantime.
@abulgatz commented on GitHub (Feb 19, 2021):
@ssddanbrown I can provide free admin access to a Microsoft Azure AD tenant if you'd like for testing purposes.
@aswgxf commented on GitHub (Jul 27, 2022):
Are there any updates on this? We are looking into moving all of our documentation into BookStack and currently have the SAML auth configured.
@ssddanbrown commented on GitHub (Jul 27, 2022):
@aswgxf Some further changes were made in #2902. Looks like I tested AFDS with SLS at that time, So not sure if this issue is actually relevant any more.
@ssddanbrown commented on GitHub (Oct 3, 2022):
Upon my comment above, I'm going to go ahead and close this off.
If you are facing issues after configuring logout via SAML, please open a new issue rather than responding to this one as the details will likely have since changed.
@radiantwave commented on GitHub (Dec 6, 2023):
I have the same issue.
Which details could help here?
Using v23.10.4
These are my settings: