oauth2 ustawienia + uprawnienia
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
bb38587719
commit
0f122f0201
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user