2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Add oauth for zapier

This commit is contained in:
Matthias
2022-04-25 11:19:30 +02:00
parent 7ae9586c82
commit e7357726ca
3 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,8 @@ INSTALLED_APPS = [
'django_q',
'formtools', # Form wizard tools
'oauth2_provider', # Oauth provider
'allauth', # Base app for SSO
'allauth.account', # Extend user with accounts
'allauth.socialaccount', # Use 'social' providers

View File

@ -194,6 +194,9 @@ frontendpatterns = [
url(r"^accounts/password/reset/key/(?P<uidb36>[0-9A-Za-z]+)-(?P<key>.+)/$", CustomPasswordResetFromKeyView.as_view(), name="account_reset_password_from_key"),
url(r'^accounts/', include('allauth_2fa.urls')), # MFA support
url(r'^accounts/', include('allauth.urls')), # included urlpatterns
# Oauth provider urls
url(r'^o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
]
# Append custom plugin URLs (if plugin support is enabled)