From d8f69c0609e1360aaf3749c62235065aa99ff462 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 24 Jan 2024 00:14:11 +1100 Subject: [PATCH] Specify empty OIDC prefix (#6324) * 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 --- InvenTree/InvenTree/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 3018e7f699..d16c322d3f 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -1000,6 +1000,11 @@ SOCIALACCOUNT_PROVIDERS = get_setting( 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