From 6a66be36f29cdc700479b38eee5305c87e1a74a9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 06:32:55 +1100 Subject: [PATCH] Specify empty OIDC prefix (#6324) (#6327) * Specify empty OIDC prefix Ref: https://github.com/inventree/InvenTree/discussions/6273 * Add extra comment around version information * Update InvenTree/InvenTree/settings.py Co-authored-by: Philipp Fruck --------- Co-authored-by: Philipp Fruck (cherry picked from commit d8f69c0609e1360aaf3749c62235065aa99ff462) Co-authored-by: Oliver --- InvenTree/InvenTree/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 213f62734d..186e5cf559 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -970,6 +970,11 @@ SOCIALACCOUNT_PROVIDERS = get_setting('INVENTREE_SOCIAL_PROVIDERS', 'social_prov SOCIALACCOUNT_STORE_TOKENS = True +# Explicitly set empty URL prefix for OIDC +# The SOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX setting was introduced in v0.60.0 +# Ref: https://github.com/pennersr/django-allauth/blob/0.60.0/ChangeLog.rst#backwards-incompatible-changes +SOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX = '' + # settings for allauth ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', 'login_confirm_days', 3, typecast=int) ACCOUNT_LOGIN_ATTEMPTS_LIMIT = get_setting('INVENTREE_LOGIN_ATTEMPTS', 'login_attempts', 5, typecast=int)