Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pieroit committed Jun 7, 2024
1 parent 245a20c commit c68831b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/cat/auth/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ async def http_auth(request: Request) -> None | StrayCat:
else:
# api_key (could be None).
# check if api_key is correct

# TODOAUTH: check env variable here

user_id = request.headers.get("user_id", "user")
user_info: AuthUserInfo = await auth_handler.get_user_info_from_api_key(credential, user_id)

Expand Down
2 changes: 2 additions & 0 deletions core/tests/routes/auth/test_env_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ def test_api_key_ws(secure_client):
assert "You did not configure" in res["content"]




0 comments on commit c68831b

Please sign in to comment.