Auth: Fix key check coalesce

Prefer the auth-specific headers before the generic authorization
header.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-07-19 10:08:57 -04:00
parent e20a2d504b
commit 38185a1ff4
2 changed files with 2 additions and 2 deletions

View File

@@ -432,9 +432,9 @@ async def key_permission(request: Request) -> AuthPermissionResponse:
Gets the access level/permission of a provided key in headers.
Priority:
- Authorization
- X-admin-key
- X-api-key
- Authorization
"""
try: