oauth2 start
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-01-12 14:35:51 +01:00
parent a09ea81d42
commit 59c63f28de
3 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,7 @@ REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated',
@ -69,6 +70,7 @@ INSTALLED_APPS = [
'dj_rest_auth.registration',
"core",
"jobposting",
'oauth2_provider',
]
SITE_ID = 1

View File

@ -20,4 +20,5 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("api/user/", include('core.urls')),
path("api/jobposting/", include('jobposting.urls')),
path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
]

View File

@ -5,4 +5,5 @@ psycopg2-binary
django-allauth
dj-rest-auth
django-cors-headers
Pillow
Pillow
django-oauth-toolkit