oauth2 ustawienia + uprawnienia
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-01-12 21:04:03 +01:00
parent bb38587719
commit 0f122f0201

View File

@ -40,12 +40,13 @@ CORS_ALLOW_ALL_ORIGINS = True
# ]
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'DEFAULT_AUTHENTICATION_CLASSES': [
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated',
)
]
}
OAUTH2_PROVIDER = {