Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
cleanup oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Nov 7, 2023
1 parent bb3065e commit 1067b0f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 100 deletions.
5 changes: 0 additions & 5 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@
"rest_framework.authtoken",
"corsheaders",
"drf_spectacular",
"oauth2_provider",
"social_django",
"allauth.socialaccount.providers.orcid",
]

Expand Down Expand Up @@ -203,8 +201,6 @@
"django.template.context_processors.tz",
"django.contrib.messages.context_processors.messages",
"backoffice.users.context_processors.allauth_settings",
"social_django.context_processors.backends",
"social_django.context_processors.login_redirect",
],
},
}
Expand Down Expand Up @@ -339,7 +335,6 @@
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework.authentication.SessionAuthentication",
"rest_framework.authentication.TokenAuthentication",
"oauth2_provider.contrib.rest_framework.OAuth2Authentication",
),
"DEFAULT_PERMISSION_CLASSES": ("backoffice.management.permissions.IsAdminOrCuratorUser",),
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
Expand Down
3 changes: 0 additions & 3 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
path("about/", TemplateView.as_view(template_name="pages/about.html"), name="about"),
# Django Admin, use {% url 'admin:index' %}
path(settings.ADMIN_URL, admin.site.urls),
path("oauth2/", include("oauth2_provider.urls", namespace="oauth2_provider")),
path("auth/", include("social_django.urls", namespace="social")),
# User management
path("users/", include("backoffice.users.urls", namespace="users")),
path("accounts/", include("allauth.urls")),
# Your stuff: custom urls includes go here
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
if settings.DEBUG:
# Static file serving when using Gunicorn + Uvicorn for local web socket development
Expand Down
91 changes: 1 addition & 90 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ sentry-sdk = "1.31.0"
django-storages = {version = "1.14.2", extras = ["s3"]}
django-anymail = "10.1"
dj-database-url = "^2.1.0"
django-oauth-toolkit = "2.3.0"
whitenoise = "^6.6.0"
social-auth-app-django = "^5.4.0"

[tool.poetry.dev-dependencies]
factory-boy = "3.3.0"
Expand Down

0 comments on commit 1067b0f

Please sign in to comment.