Now support Bearer auth in complement of JWT

This commit is contained in:
Eliot Berriot 2018-04-26 15:17:51 +02:00
parent 2477aa31f9
commit d2c2fb837e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 38 additions and 3 deletions

View file

@ -377,6 +377,7 @@ REST_FRAMEWORK = {
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'funkwhale_api.common.authentication.JSONWebTokenAuthenticationQS',
'funkwhale_api.common.authentication.BearerTokenHeaderAuth',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',