Request for help using the Logical Theme system to enable logging in via url parameters #4676

Closed
opened 2026-02-05 09:10:28 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @cepm-nate on GitHub (Apr 20, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I'd like to use embedded iframes for an in-house call scripting setup. I'd like to use one of the chapters as the jumping-off point for the call script. Embedding an Iframe took a little bit of tweaking to the .env file (ALLOWED_IFRAME_HOSTS), as well as the hack for iframe embedding. Those are well written and understandable! :-)

I've delved into writing a functions.php within my /BookStack/themes/custom folder, and can hook into the APP_BOOT event. And I can grab the parameters from the url. But I've run into a lack of knowledge on how to login the user from that point on.

It's been quite a while since I've been in PHP, and I'm not familiar with the framework. I've been reading thru the source files from a repository search here for 'login', and my brain is starting to hurt.

Is there any chance someone has cooked something like this up for either the functions.php file on the APP_BOOT event, or could point me to an example of where the app does the "check user against DB, then tell framework which user is logged in" code so I can dig further?

Thank you so much!

Our CSR exclaimed "This is so much better than the old WIKI" when shown bookstack. :-) It really does look nice and the organization of shelves - > books -> chapters -> pages is logical and easy for anyone to follow. Totally loving it!

Exact BookStack Version

v24.02.03

Log Content

No response

Hosting Environment

PHP 8.3 on IIS (I don't think this relevant)

Originally created by @cepm-nate on GitHub (Apr 20, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I'd like to use embedded iframes for an in-house call scripting setup. I'd like to use one of the chapters as the jumping-off point for the call script. Embedding an Iframe took a little bit of tweaking to the .env file (ALLOWED_IFRAME_HOSTS), as well as the hack for iframe embedding. Those are well written and understandable! :-) I've delved into writing a functions.php within my /BookStack/themes/custom folder, and can hook into the APP_BOOT event. And I can grab the parameters from the url. But I've run into a lack of knowledge on how to login the user from that point on. It's been quite a while since I've been in PHP, and I'm not familiar with the framework. I've been reading thru the source files from a repository search here for 'login', and my brain is starting to hurt. Is there any chance someone has cooked something like this up for either the functions.php file on the APP_BOOT event, or could point me to an example of where the app does the "check user against DB, then tell framework which user is logged in" code so I can dig further? Thank you so much! Our CSR exclaimed "This is so much better than the old WIKI" when shown bookstack. :-) It really does look nice and the organization of shelves - > books -> chapters -> pages is logical and easy for anyone to follow. Totally loving it! ### Exact BookStack Version v24.02.03 ### Log Content _No response_ ### Hosting Environment PHP 8.3 on IIS (I don't think this relevant)
OVERLORD added the 🐕 Support label 2026-02-05 09:10:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4676