Add authorization and per-user scrobbling
The webhook endpoints now require a token before it will accept a scrobble. That auth then provides the user to assign the scrobble to.
This commit is contained in:
@ -160,8 +160,8 @@ AUTHENTICATION_BACKENDS = [
|
||||
REST_FRAMEWORK = {
|
||||
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.AllowAny",),
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
#'rest_framework.authentication.BasicAuthentication',
|
||||
#'rest_framework.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.BasicAuthentication',
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
],
|
||||
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
|
||||
|
||||
Reference in New Issue
Block a user