BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
14.67k stars 1.85k forks source link

Make only one page public of an authenticated site #4781

Closed stanislas14 closed 7 months ago

stanislas14 commented 7 months ago

Attempted Debugging

Searched GitHub Issues

Describe the Scenario

Hi,

My site is authenticated with LDAP authentication. The configuration is done in the .env configuration file and it works very well.

But I need a page on this site to be publicly accessible without authentication, is this feasible? I've played with permissions but I think authentication takes over every time.

Is there a solution? I would like to avoid making the site public and putting permissions on each shelf..

Regards

Exact BookStack Version

v23.12

Log Content

No response

Hosting Environment

PHP 8.1 on redhat 9

ssddanbrown commented 7 months ago

Hi @stanislas14, The main way to do this is to make the site public, but alter the guest role permissions so it has no permissions by default, then assign view permissions as required per book/chapter/page. Note though, this does take away a significant layer of defence to the site.

Alternatively, if you have development skills, you could use the REST API to fetch your page content then display externally, or build some level of automation using the tools we provide (webooks, theme systems).

stanislas14 commented 7 months ago

Hi,

Thanks a lot for your answer. Indeed, we have to look at the problem in reverse. This solution works

regards

ssddanbrown commented 7 months ago

Good to her that works. I'll therefore close this off.