Add configurable multi-auth support for local and OIDC logins#6068
Add configurable multi-auth support for local and OIDC logins#6068holger-dev wants to merge 8 commits intoBookStackApp:developmentfrom
Conversation
|
Thanks @holger-dev for offering this PR. Unfortunately this still isn't something I'd look to maintain/support at this time, for pretty much the same reasons as I stated on the issue, although I appreciate demand has increased since. That's not to say such a feature won't eventually be added, but I just can't see it being included within the next year or so. Especially as there are some other elements (a revamp to login sessions) which I'd probably like to do before something like this. Thanks again for offering this code though, but due to the above, I'm going to go ahead and close this off. |
This PR extends BookStack authentication so multiple login methods can be enabled at the same time, instead of forcing a single global auth method.
The main use case is running OIDC alongside local BookStack accounts. With this change, admins can keep OIDC as the primary login method while still creating internal users with local passwords who can sign in through the normal login form.
Key changes:
Example configuration:
AUTH_METHOD=standard
AUTH_METHODS=standard,oidc
AUTH_PRIMARY_METHOD=oidc
AUTH_AUTO_INITIATE=false
This allows: