Allow providing REST API authentication token with Bearer keyword (#995)

This commit is contained in:
Sascha Ißbrücker
2025-02-22 19:59:53 +01:00
committed by GitHub
parent 30f85103cd
commit 2e97b13bad
3 changed files with 67 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, "static")
# REST framework
REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.TokenAuthentication",
"bookmarks.api.auth.LinkdingTokenAuthentication",
"rest_framework.authentication.SessionAuthentication",
],
"DEFAULT_PERMISSION_CLASSES": ["rest_framework.permissions.IsAuthenticated"],