Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Enzo Yair
/
turismo-api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2024-10-02 09:57:15 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
55746230bcba90f58346f21c1448788ed52b9e45
55746230
1 parent
d480c14a
Implementacion de api_keys
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
project/settings/base.py
requirements/base.txt
project/settings/base.py
View file @
5574623
...
...
@@ -55,8 +55,7 @@ THIRD_PARTY_APPS = (
'rest_framework'
,
'django_filters'
,
'corsheaders'
,
'oauth2_provider'
,
'mozilla_django_oidc'
,
"rest_framework_api_key"
,
)
...
...
@@ -158,8 +157,10 @@ REST_FRAMEWORK = {
'rest_framework.parsers.FormParser'
,
'rest_framework.parsers.MultiPartParser'
),
"DEFAULT_PERMISSION_CLASSES"
:
[
"rest_framework_api_key.permissions.HasAPIKey"
,
],
'DEFAULT_AUTHENTICATION_CLASSES'
:
(
'oauth2_provider.contrib.rest_framework.OAuth2Authentication'
,
'rest_framework.authentication.BasicAuthentication'
,
'rest_framework.authentication.SessionAuthentication'
,
),
...
...
requirements/base.txt
View file @
5574623
...
...
@@ -6,8 +6,7 @@ django-filter==23.3
djangorestframework==3.14.0
django-environ==0.11.2
djangorestframework-jsonapi==6.1.0
django-oauth-toolkit==2.3.0
mozilla-django-oidc==3.0.0
djangorestframework-api-key==2.3.0
# visualizar imagenes.
pillow==10.4.0
...
...
Please
register
or
login
to post a comment