feat(auth): add OIDC_DISABLE_LOCAL_LOGIN to turn off password logins

When the flag is on and an OIDC provider is configured, every e-mail and
password check is refused: the login page, the admin and the API's basic
auth. OIDC logins, API tokens, OAuth apps and permission checks keep working.
The login page hides the password form.
This commit is contained in:
fariskazmi committed 2026-11-02 09:08:30 -06:00
1 parent ec9efccdf2
commit 161fc19721
6 files changed
+185 -22

No files matched your search

+2
View File
@@ -41,6 +41,8 @@ TASK_WORKERS=1 # This only work if you're using the single container option. Inc
# Trust all provider emails, including false or missing email_verified claims.
# Set to false to require provider-verified emails before linking existing accounts.
#OIDC_TRUST_EMAIL=true
# Only allow signing in through OIDC: e-mail and password logins are refused everywhere.
#OIDC_DISABLE_LOCAL_LOGIN=false
# Personal access tokens. How often (seconds) a token's last_used_at is rewritten.
#API_TOKEN_LAST_USED_UPDATE_INTERVAL=600