You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #36 from Healy-Hyperspatial/update-core-3.0.0
### Added
- Logging to database logic. [#36](#36)
### Changed
- Add support for python 3.12. [#22](#22)
- Updated sfeos core to v3.0.0a0, fixed datetime functionality. [#23](#23)
- Updated stac-fastapi.core to v4.1.0. [#36](#36)
- Create indexes in MongoDB at startup only if environment variable MONGO_CREATE_INDEXES is set to "true" (default when the env variable is not set: "true"). [#31](#31)
- Improved README with table of contents, better formatting, and added Contributing section. [#34](#34)
- Updated authentication to use STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable instead of BASIC_AUTH. [#36](#36)
### Fixed
- Added a new index based on collection id and item id to ensure item IDs aren't required to be unique across all collections. [#26](#26)
- Updated test fixtures to use ASGITransport with AsyncClient for compatibility with newer httpx versions. [#35](#35)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0/
7
7
8
8
## [Unreleased]
9
9
10
+
## [v4.0.0]
11
+
12
+
### Added
13
+
14
+
- Logging to database logic. [#36](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/36)
15
+
10
16
### Changed
11
17
12
18
- Add support for python 3.12. [#22](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/22)
13
19
- Updated sfeos core to v3.0.0a0, fixed datetime functionality. [#23](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/23)
20
+
- Updated stac-fastapi.core to v4.1.0. [#36](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/36)
14
21
- Create indexes in MongoDB at startup only if environment variable MONGO_CREATE_INDEXES is set to "true" (default when the env variable is not set: "true"). [#31](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/31)
15
22
- Improved README with table of contents, better formatting, and added Contributing section. [#34](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/34)
23
+
- Updated authentication to use STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable instead of BASIC_AUTH. [#36](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo/pull/36)
16
24
17
25
### Fixed
18
26
@@ -76,7 +84,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0/
@@ -18,6 +18,19 @@ MongoDB backend for the [stac-fastapi](https://github.com/stac-utils/stac-fastap
18
18
19
19
<!-- [](https://gitter.im/stac-fastapi-mongo/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -->
20
20
21
+
## Technologies
22
+
23
+
This project is built on the following technologies: STAC, stac-fastapi, SFEOS core, FastAPI, MongoDB, Python
The `STAC_FASTAPI_ROUTE_DEPENDENCIES` environment variable allows you to configure different levels of authentication for different routes. The configuration is a JSON array of objects, each with two properties:
139
156
140
-
In order to set endpoints with specific access permissions, you can configure the `users` key with a list of user objects. Each user object should contain the username, password, and their respective permissions.
157
+
1.`routes`: An array of route objects, each with `method` and `path` properties
158
+
2.`dependencies`: An array of dependency objects, each with `method` and `kwargs` properties
159
+
160
+
#### Examples
161
+
162
+
##### Admin-only Authentication
163
+
164
+
This example configures all routes to require admin authentication:
141
165
142
-
Example: This example illustrates the configuration for two users: an **admin** user with full permissions (*) and a **reader** user with limited permissions to specific read-only endpoints.
In order to set endpoints with public access, you can configure the public_endpoints key with a list of endpoint objects. Each endpoint object should specify the path and method of the endpoint.
194
+
This example makes specific endpoints public while requiring admin authentication for all others:
174
195
175
-
Example: This example demonstrates the configuration for public endpoints, allowing access without authentication to read-only endpoints.
0 commit comments