oauth2 ustawienia + uprawnienia
This commit is contained in:
parent
363c60c382
commit
86f82cbefe
@ -40,12 +40,12 @@ CORS_ALLOW_ALL_ORIGINS = True
|
||||
# ]
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
||||
],
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
),
|
||||
'DEFAULT_PERMISSION_CLASSES': (
|
||||
'rest_framework.permissions.IsAuthenticated',
|
||||
],
|
||||
)
|
||||
}
|
||||
|
||||
OAUTH2_PROVIDER = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user