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 = {
|
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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user