add aditional provider settings

This commit is contained in:
Matthias 2021-09-07 23:55:11 +02:00
parent 0eb9d3ad5b
commit f730702a7d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 10 additions and 1 deletions

View File

@ -660,6 +660,8 @@ SOCIAL_BACKENDS = CONFIG.get('social_backends', [])
for app in SOCIAL_BACKENDS:
INSTALLED_APPS.append(app)
SOCIALACCOUNT_PROVIDERS = CONFIG.get('social_providers', [])
# settings for allauth
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', CONFIG.get('login_confirm_days', 3))

View File

@ -168,4 +168,11 @@ static_root: '/home/inventree/data/static'
# Add SSO login-backends
# social_backends:
# - 'allauth.socialaccount.providers.github'
# - 'allauth.socialaccount.providers.keycloak'
# Add specific settings
# social_providers:
# keycloak:
# KEYCLOAK_URL: 'https://keycloak.custom/auth'
# KEYCLOAK_REALM: 'master'