mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-04 01:44:15 +00:00
remove deprecated api csrf argument
This commit is contained in:
1 parent
02f7e10729
commit
2e9e1b6a78
10 files changed
+66
-44
No files matched your search
@@ -6,6 +6,8 @@ from api.models import ApiClient, ApiKey
|
||||
|
||||
|
||||
class ApiKeyAuth(APIKeyHeader):
|
||||
"""Authentication through client api keys."""
|
||||
|
||||
param_name = "X-APIKey"
|
||||
|
||||
def authenticate(self, request: HttpRequest, key: str | None) -> ApiClient | None:
|
||||
|
||||
Reference in new issue
Block a user