move sso settings

This commit is contained in:
wh1te909 2024-10-25 03:33:40 +00:00 committed by sadnub
parent 2c09ad6b91
commit 038304384a
2 changed files with 20 additions and 13 deletions

View File

@ -0,0 +1,18 @@
"""
Copyright (c) 2024-present Amidaware Inc.
This file is subject to the EE License Agreement.
For details, see: https://license.tacticalrmm.com/ee
"""
HEADLESS_ONLY = True
SOCIALACCOUNT_ONLY = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
ACCOUNT_EMAIL_VERIFICATION = "none"
SOCIALACCOUNT_ADAPTER = "ee.sso.adapter.TacticalSocialAdapter"
SOCIALACCOUNT_EMAIL_AUTHENTICATION = True
SOCIALACCOUNT_EMAIL_AUTHENTICATION_AUTO_CONNECT = True
SOCIALACCOUNT_EMAIL_VERIFICATION = True
SOCIALACCOUNT_PROVIDERS = {"openid_connect": {"OAUTH_PKCE_ENABLED": True}}
SESSION_COOKIE_SECURE = True

View File

@ -117,19 +117,8 @@ REDIS_HOST = "127.0.0.1"
TRMM_LOG_LEVEL = "ERROR" TRMM_LOG_LEVEL = "ERROR"
TRMM_LOG_TO = "file" TRMM_LOG_TO = "file"
# settings for django all auth with suppress(ImportError):
HEADLESS_ONLY = True from ee.sso.sso_settings import * # noqa
SOCIALACCOUNT_ONLY = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
ACCOUNT_EMAIL_VERIFICATION = "none"
SOCIALACCOUNT_ADAPTER = "ee.sso.adapter.TacticalSocialAdapter"
SOCIALACCOUNT_EMAIL_AUTHENTICATION = True
SOCIALACCOUNT_EMAIL_AUTHENTICATION_AUTO_CONNECT = True
SOCIALACCOUNT_EMAIL_VERIFICATION = True
SOCIALACCOUNT_PROVIDERS = {"openid_connect": {"OAUTH_PKCE_ENABLED": True}}
SESSION_COOKIE_SECURE = True
with suppress(ImportError): with suppress(ImportError):
from .local_settings import * # noqa from .local_settings import * # noqa