Skip to content

Commit

Permalink
chore: mark token dependency as security dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Dec 8, 2024
1 parent f23350f commit 44116b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stac_auth_proxy/guards/cel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Any, Callable

import celpy
from fastapi import Depends, HTTPException, Request
from fastapi import HTTPException, Request, Security

from ..utils import extract_variables

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

async def check(
request: Request,
auth_token=Depends(token_dependency),
auth_token=Security(token_dependency),
):
request_data = {
"path": request.url.path,
Expand Down

0 comments on commit 44116b7

Please sign in to comment.