Skip to content

Commit 0181208

Browse files
committed
fix: Update fastapi signature
1 parent 6088e73 commit 0181208

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ all = [
7373
"dask[dataframe]",
7474
"duckdb <1.4.0", # https://github.com/bluesky/tiled/issues/1144
7575
"entrypoints",
76-
"fastapi >=0.115.8",
76+
"fastapi >=0.122.0",
7777
"h5netcdf",
7878
"h5py",
7979
"hdf5plugin",

tiled/server/authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def __call__(self, request: Request) -> Optional[str]:
112112
api_key: Optional[str] = request.headers.get(self.model.name)
113113
scheme, param = get_authorization_scheme_param(api_key)
114114
if not scheme or scheme.lower() == "bearer":
115-
return self.check_api_key(None, self.auto_error)
115+
return self.check_api_key(None)
116116
if scheme.lower() != self.scheme_name.lower():
117117
raise HTTPException(
118118
status_code=HTTP_400_BAD_REQUEST,
@@ -122,7 +122,7 @@ async def __call__(self, request: Request) -> Optional[str]:
122122
"'Bearer SECRET' or 'Apikey SECRET'. "
123123
),
124124
)
125-
return self.check_api_key(param, self.auto_error)
125+
return self.check_api_key(param)
126126

127127

128128
# The tokenUrl below is patched at app startup when we know it.

0 commit comments

Comments
 (0)