Skip to content

Commit 44116b7

Browse files
committed
chore: mark token dependency as security dependency
1 parent f23350f commit 44116b7

File tree

1 file changed

+2
-2
lines changed
  • src/stac_auth_proxy/guards

1 file changed

+2
-2
lines changed

src/stac_auth_proxy/guards/cel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Any, Callable
44

55
import celpy
6-
from fastapi import Depends, HTTPException, Request
6+
from fastapi import HTTPException, Request, Security
77

88
from ..utils import extract_variables
99

@@ -16,7 +16,7 @@ def cel(expression: str, token_dependency: Callable[..., Any]):
1616

1717
async def check(
1818
request: Request,
19-
auth_token=Depends(token_dependency),
19+
auth_token=Security(token_dependency),
2020
):
2121
request_data = {
2222
"path": request.url.path,

0 commit comments

Comments
 (0)