mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
remove temp fix
This commit is contained in:
@ -1303,28 +1303,6 @@ MFA_ADAPTER = 'InvenTree.auth_overrides.CustomMFAAdapter'
|
|||||||
HEADLESS_ADAPTER = 'InvenTree.auth_overrides.CustomHeadlessAdapter'
|
HEADLESS_ADAPTER = 'InvenTree.auth_overrides.CustomHeadlessAdapter'
|
||||||
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
|
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
|
||||||
|
|
||||||
|
|
||||||
# region to_be_moved
|
|
||||||
def get_frontend_url(pui_path: str):
|
|
||||||
"""Generate frontend url.
|
|
||||||
|
|
||||||
#TODO remove this https://codeberg.org/allauth/django-allauth/issues/4226 is merged.
|
|
||||||
"""
|
|
||||||
host: str = 'http://localhost:8000'
|
|
||||||
if not host.endswith('/'):
|
|
||||||
host += '/'
|
|
||||||
return f'{host}{FRONTEND_URL_BASE}/{pui_path}'
|
|
||||||
|
|
||||||
|
|
||||||
HEADLESS_FRONTEND_URLS = {
|
|
||||||
'account_confirm_email': get_frontend_url('verify-email/{key}'), # noqa: RUF027
|
|
||||||
'account_reset_password': get_frontend_url('reset-password'),
|
|
||||||
'account_reset_password_from_key': get_frontend_url('set-password?key={key}'), # noqa: RUF027
|
|
||||||
'account_signup': get_frontend_url('register'),
|
|
||||||
'socialaccount_login_error': get_frontend_url('social-login-error'),
|
|
||||||
}
|
|
||||||
# endregion to_be_moved
|
|
||||||
|
|
||||||
HEADLESS_ONLY = True
|
HEADLESS_ONLY = True
|
||||||
HEADLESS_TOKEN_STRATEGY = 'InvenTree.auth_overrides.DRFTokenStrategy'
|
HEADLESS_TOKEN_STRATEGY = 'InvenTree.auth_overrides.DRFTokenStrategy'
|
||||||
MFA_ENABLED = get_boolean_setting(
|
MFA_ENABLED = get_boolean_setting(
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Django<5.0 # Django package
|
Django<5.0 # Django package
|
||||||
coreapi # API documentation for djangorestframework
|
coreapi # API documentation for djangorestframework
|
||||||
cryptography>=40.0.0,!=40.0.2,<=43.0.3 # Core cryptographic functionality
|
cryptography>=40.0.0,!=40.0.2,<=43.0.3 # Core cryptographic functionality
|
||||||
django-allauth[mfa,socialaccount,saml,openid] # SSO for external providers via OpenID
|
django-allauth[mfa,socialaccount,saml,openid] @ git+https://codeberg.org/allauth/django-allauth@main # SSO for external providers via OpenID
|
||||||
django-cleanup # Automated deletion of old / unused uploaded files
|
django-cleanup # Automated deletion of old / unused uploaded files
|
||||||
django-cors-headers # CORS headers extension for DRF
|
django-cors-headers # CORS headers extension for DRF
|
||||||
django-dbbackup # Backup / restore of database and media files
|
django-dbbackup # Backup / restore of database and media files
|
||||||
|
@ -412,8 +412,7 @@ django==4.2.18 \
|
|||||||
# djangorestframework
|
# djangorestframework
|
||||||
# djangorestframework-simplejwt
|
# djangorestframework-simplejwt
|
||||||
# drf-spectacular
|
# drf-spectacular
|
||||||
django-allauth[mfa, openid, saml, socialaccount]==65.3.1 \
|
django-allauth[mfa, openid, saml, socialaccount] @ git+https://codeberg.org/allauth/django-allauth@b802a0ff6206a8b7b6c9ecf7148d414f6868d47a
|
||||||
--hash=sha256:e02e951b71a2753a746459f2efa114c7c72bf2cef6887dbe8607a577c0350587
|
|
||||||
# via -r src/backend/requirements.in
|
# via -r src/backend/requirements.in
|
||||||
django-cleanup==9.0.0 \
|
django-cleanup==9.0.0 \
|
||||||
--hash=sha256:19f8b0e830233f9f0f683b17181f414672a0f48afe3ea3cc80ba47ae40ad880c \
|
--hash=sha256:19f8b0e830233f9f0f683b17181f414672a0f48afe3ea3cc80ba47ae40ad880c \
|
||||||
|
Reference in New Issue
Block a user