Implement token auth for sähköpiikki

This commit is contained in:
Jan Tuomi
2017-09-26 14:39:21 +03:00
parent e10af28c4d
commit 61f5c293db
8 changed files with 63 additions and 4 deletions
+3
View File
@@ -193,6 +193,9 @@ REST_FRAMEWORK = {
'rest_framework.permissions.DjangoModelPermissions',
'rest_framework.permissions.IsAdminUser',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
),
'DEFAULT_THROTTLE_CLASSES': (
'members.throttles.BurstRateThrottle',
'members.throttles.SustainedRateThrottle'