r/BookStack • u/mmeinert • Jan 28 '26
Default role with OIDC
Hi there,
I'd like to give a default role to users when they login for the first time with OIDC SSO enabled.
It's a docker deployment with external MySQL DB.
I've added this to my .env
APP_PUBLIC=true
APP_DEFAULT_PUBLIC_ROLE=guest_oidc
OIDC_DEFAULT_ROLE=11(11 is the id of the guest_oidc role in the DB)
I gave this role to some shelves I want public but anytime a user reach the page with his active SSO he won't get the role assigned.
Any idea where to investigate?
4
Upvotes
View all comments
Show parent comment
1
u/mmeinert Jan 28 '26
Thank you very much