diff --git a/config/settings/common.py b/config/settings/common.py index b94ab31..7c1d361 100644 --- a/config/settings/common.py +++ b/config/settings/common.py @@ -309,6 +309,14 @@ REST_FRAMEWORK = { 'django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.OrderingFilter' ), + 'DEFAULT_PERMISSION_CLASSES': ( + 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly', + ), + 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'rest_framework.authentication.BasicAuthentication', + 'rest_framework.authentication.SessionAuthentication', + 'rest_framework.authentication.TokenAuthentication', + ), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 50 }