JWT implemented and hopefully more stable logins

This commit is contained in:
Fergal Moran
2015-07-13 22:49:47 +01:00
parent 33e0e58b5e
commit f0f8c1986d
6 changed files with 107 additions and 10 deletions

View File

@@ -201,7 +201,9 @@ REST_FRAMEWORK = {
'rest_framework.filters.OrderingFilter',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
),
'PAGINATE_BY': 12, # Default to 10
'PAGINATE_BY_PARAM': 'limit', # Allow client to override, using `?page_size=xxx`.