Showing
2 changed files
with
5 additions
and
5 deletions
@@ -55,8 +55,7 @@ THIRD_PARTY_APPS = ( | @@ -55,8 +55,7 @@ THIRD_PARTY_APPS = ( | ||
55 | 'rest_framework', | 55 | 'rest_framework', |
56 | 'django_filters', | 56 | 'django_filters', |
57 | 'corsheaders', | 57 | 'corsheaders', |
58 | - 'oauth2_provider', | ||
59 | - 'mozilla_django_oidc', | 58 | + "rest_framework_api_key", |
60 | 59 | ||
61 | ) | 60 | ) |
62 | 61 | ||
@@ -158,8 +157,10 @@ REST_FRAMEWORK = { | @@ -158,8 +157,10 @@ REST_FRAMEWORK = { | ||
158 | 'rest_framework.parsers.FormParser', | 157 | 'rest_framework.parsers.FormParser', |
159 | 'rest_framework.parsers.MultiPartParser' | 158 | 'rest_framework.parsers.MultiPartParser' |
160 | ), | 159 | ), |
160 | + "DEFAULT_PERMISSION_CLASSES": [ | ||
161 | + "rest_framework_api_key.permissions.HasAPIKey", | ||
162 | + ], | ||
161 | 'DEFAULT_AUTHENTICATION_CLASSES': ( | 163 | 'DEFAULT_AUTHENTICATION_CLASSES': ( |
162 | - 'oauth2_provider.contrib.rest_framework.OAuth2Authentication', | ||
163 | 'rest_framework.authentication.BasicAuthentication', | 164 | 'rest_framework.authentication.BasicAuthentication', |
164 | 'rest_framework.authentication.SessionAuthentication', | 165 | 'rest_framework.authentication.SessionAuthentication', |
165 | ), | 166 | ), |
@@ -6,8 +6,7 @@ django-filter==23.3 | @@ -6,8 +6,7 @@ django-filter==23.3 | ||
6 | djangorestframework==3.14.0 | 6 | djangorestframework==3.14.0 |
7 | django-environ==0.11.2 | 7 | django-environ==0.11.2 |
8 | djangorestframework-jsonapi==6.1.0 | 8 | djangorestframework-jsonapi==6.1.0 |
9 | -django-oauth-toolkit==2.3.0 | ||
10 | -mozilla-django-oidc==3.0.0 | 9 | +djangorestframework-api-key==2.3.0 |
11 | 10 | ||
12 | # visualizar imagenes. | 11 | # visualizar imagenes. |
13 | pillow==10.4.0 | 12 | pillow==10.4.0 |
-
Please register or login to post a comment