Skip to content

Update to stac-fastapi 3.0.0a4 #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added docker-compose.route_dependencies_env.yml that gives an example using the STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)

### Changed
- Updated to stac-fastapi 3.0.0a4. [#275](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/275)
- Converted Basic auth to a route dependency and merged with new route depndencies method. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)
- Updated docker-compose.basic_auth_protected.yml to use STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)

Expand Down
6 changes: 3 additions & 3 deletions stac_fastapi/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"attrs>=23.2.0",
"pydantic[dotenv]",
"stac_pydantic>=3",
"stac-fastapi.types==3.0.0a3",
"stac-fastapi.api==3.0.0a3",
"stac-fastapi.extensions==3.0.0a3",
"stac-fastapi.types==3.0.0a4",
"stac-fastapi.api==3.0.0a4",
"stac-fastapi.extensions==3.0.0a4",
"orjson",
"overrides",
"geojson-pydantic",
Expand Down
3 changes: 2 additions & 1 deletion stac_fastapi/core/stac_fastapi/core/route_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import json
import logging
import os
from typing import List

from fastapi import Depends
from jsonschema import validate
Expand Down Expand Up @@ -156,7 +157,7 @@ def get_route_dependencies(route_dependencies_env: str = "") -> list:
route_dependencies_env = os.environ.get(
"STAC_FASTAPI_ROUTE_DEPENDENCIES", route_dependencies_env
)
route_dependencies: list[tuple] = []
route_dependencies: List[tuple] = []

if not route_dependencies_env:
_LOGGER.info("Authentication skipped.")
Expand Down