Add configurable multi-auth support for local and OIDC logins#6068
Open
holger-dev wants to merge 8 commits intoBookStackApp:developmentfrom
Open
Add configurable multi-auth support for local and OIDC logins#6068holger-dev wants to merge 8 commits intoBookStackApp:developmentfrom
holger-dev wants to merge 8 commits intoBookStackApp:developmentfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: