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 = { REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': ( 'DEFAULT_AUTHENTICATION_CLASSES': [
'oauth2_provider.contrib.rest_framework.OAuth2Authentication', 'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
), 'rest_framework.authentication.SessionAuthentication',
'DEFAULT_PERMISSION_CLASSES': ( ],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated', 'rest_framework.permissions.IsAuthenticated',
) ]
} }
OAUTH2_PROVIDER = { OAUTH2_PROVIDER = {