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 <dev@p-fruck.de>

---------

Co-authored-by: Philipp Fruck <dev@p-fruck.de>
This commit is contained in:
Oliver 2024-01-24 00:14:11 +11:00 committed by GitHub
parent 8f6893a6b2
commit d8f69c0609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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