Enable Auto Login for SAML2 #1778

Closed
opened 2026-02-05 01:50:54 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @tiredofit on GitHub (Jul 7, 2020).

Describe the feature you'd like
I feel it would be useful to have full single sign on capabilities for SAML2 without having to click the login button.

Describe the benefits this feature would bring to BookStack users
This would avoid a click for users to login, and be automatically sent to the destination page.

Originally created by @tiredofit on GitHub (Jul 7, 2020). **Describe the feature you'd like** I feel it would be useful to have full single sign on capabilities for SAML2 without having to click the login button. **Describe the benefits this feature would bring to BookStack users** This would avoid a click for users to login, and be automatically sent to the destination page.
OVERLORD added the 🔨 Feature Request🚪 Authentication labels 2026-02-05 01:50:54 +03:00
Author
Owner

@sswany commented on GitHub (Dec 4, 2021):

This is relatively crude, but I was looking to do the same thing. I added the following to the Custom HTML head content and seems to work great. Basically just clicks on the SSO login button if its visible on the page after the DOM loads:

<script>
window.addEventListener("load", function () {
   document.getElementById("saml-login").click();
});
</script>
@sswany commented on GitHub (Dec 4, 2021): This is relatively crude, but I was looking to do the same thing. I added the following to the Custom HTML head content and seems to work great. Basically just clicks on the SSO login button if its visible on the page after the DOM loads: ``` <script> window.addEventListener("load", function () { document.getElementById("saml-login").click(); }); </script> ```
Author
Owner

@ssddanbrown commented on GitHub (Jun 21, 2022):

With the merge of #3406 this functionality is now available as a built-in option.
This will be part of the next feature release.

@ssddanbrown commented on GitHub (Jun 21, 2022): With the merge of #3406 this functionality is now available as a built-in option. This will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1778