mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
add aditional provider settings
This commit is contained in:
parent
0eb9d3ad5b
commit
f730702a7d
@ -660,6 +660,8 @@ SOCIAL_BACKENDS = CONFIG.get('social_backends', [])
|
|||||||
for app in SOCIAL_BACKENDS:
|
for app in SOCIAL_BACKENDS:
|
||||||
INSTALLED_APPS.append(app)
|
INSTALLED_APPS.append(app)
|
||||||
|
|
||||||
|
SOCIALACCOUNT_PROVIDERS = CONFIG.get('social_providers', [])
|
||||||
|
|
||||||
# settings for allauth
|
# settings for allauth
|
||||||
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', CONFIG.get('login_confirm_days', 3))
|
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', CONFIG.get('login_confirm_days', 3))
|
||||||
|
|
||||||
|
@ -168,4 +168,11 @@ static_root: '/home/inventree/data/static'
|
|||||||
|
|
||||||
# Add SSO login-backends
|
# Add SSO login-backends
|
||||||
# social_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'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user