diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 0b1c60a094..77ba684edf 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -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)) diff --git a/InvenTree/config_template.yaml b/InvenTree/config_template.yaml index 4ee52d54ad..3472a37d8e 100644 --- a/InvenTree/config_template.yaml +++ b/InvenTree/config_template.yaml @@ -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' +