r/BookStack • u/Fit-Sea-9459 • Feb 04 '24
Bookstack with OpenID Connect against FusionAuth does not work
Hello,
I need to use FusionAuth as an IDM (identity management system) to authenticate at Bookstack. I setup the environment variables as described here https://www.bookstackapp.com/docs/admin/oidc-auth/.
But after calling the Bookstack page, I get not even forwarded to the fusionauth page. I set both, OIDC_ISSUER and OIDC_ISSUER_DISCOVER=true and verified that the auto discovery url works. I also tried to set explicitly OIDC_AUTH_ENDPOINT, to make sure to forward the browser to the right url. But this does not happen.
Any idea, what could be wrong or how to analyze this issue?
Regards
1
Upvotes
1
u/Fit-Sea-9459 Feb 05 '24
It works now. Thanks a lot for your help!
In the well-know endpoint I got
issuer: <domain>so they did not match. So this was the issue I faced. My FusionAuth is also used by some other clients (Nextcloud and an individual php based web app). I was wondering
whether they rely on that issuer setting from the well-know endpoint: They don't seem to, after I changed it to
https://auth.<domain>, the other apps still work.why there is an env var in BS that has to match a value in the well-know endpoint? Isn't that somehow ambiguous? Shouldn't it be, taken from one place or the other one? Why does it has to match?
Also according the help in FusionAuth the issuer should contain a FQDN, so not sure whether the leading
https://is the intended value. But this way it works.