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
**Related Issue(s):**
- #273
**Description:**
Authentication related docker-compose files moved to `examples/auth` and
`README` with explanation of different auth patterns being used added.
**PR Checklist:**
- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [ ] Changes are added to the changelog
---------
Co-authored-by: Jonathan Healy <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
25
25
26
26
- Updated stac-fastapi libraries to v3.0.0a1 [#265](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/265)
27
27
- Updated stac-fastapi libraries to v3.0.0a3 [#269](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/269)
28
+
- 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)
29
+
- 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)
[](https://gitter.im/stac-fastapi-elasticsearch/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
14
-
14
+
15
15
16
16
---
17
17
@@ -22,41 +22,41 @@
22
22
23
23
---
24
24
25
-
### Notes:
25
+
### Notes:
26
26
27
-
- Our Api core library can be used to create custom backends. See [stac-fastapi-mongo](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo) for a working example.
27
+
- Our Api core library can be used to create custom backends. See [stac-fastapi-mongo](https://github.com/Healy-Hyperspatial/stac-fastapi-mongo) for a working example.
28
28
- Reach out on our [Gitter](https://app.gitter.im/#/room/#stac-fastapi-elasticsearch_community:gitter.im) channel or feel free to add to our [Discussions](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/discussions) page here on github.
29
29
- There is [Postman](https://documenter.getpostman.com/view/12888943/2s8ZDSdRHA) documentation here for examples on how to run some of the API routes locally - after starting the elasticsearch backend via the docker-compose.yml file.
30
-
- The `/examples` folder shows an example of running stac-fastapi-elasticsearch from PyPI in docker without needing any code from the repository. There is also a Postman collection here that you can load into Postman for testing the API routes.
31
-
32
-
- For changes, see the [Changelog](CHANGELOG.md)
33
-
- We are always welcoming contributions. For the development notes: [Contributing](CONTRIBUTING.md)
30
+
- The `/examples` folder shows an example of running stac-fastapi-elasticsearch from PyPI in docker without needing any code from the repository. There is also a Postman collection here that you can load into Postman for testing the API routes.
31
+
32
+
- For changes, see the [Changelog](CHANGELOG.md)
33
+
- We are always welcoming contributions. For the development notes: [Contributing](CONTRIBUTING.md)
34
34
35
35
36
36
### To install from PyPI:
37
37
38
38
```shell
39
39
pip install stac_fastapi.elasticsearch
40
40
```
41
-
or
41
+
or
42
42
```
43
43
pip install stac_fastapi.opensearch
44
44
```
45
-
45
+
46
46
## Build Elasticsearch API backend
47
47
48
48
```shell
49
49
docker-compose up elasticsearch
50
50
docker-compose build app-elasticsearch
51
51
```
52
-
52
+
53
53
## Running Elasticsearch API on localhost:8080
54
54
55
55
```shell
56
56
docker-compose up app-elasticsearch
57
57
```
58
58
59
-
By default, docker-compose uses Elasticsearch 8.x and OpenSearch 2.11.1.
59
+
By default, docker-compose uses Elasticsearch 8.x and OpenSearch 2.11.1.
60
60
If you wish to use a different version, put the following in a
61
61
file named `.env` in the same directory you run docker-compose from:
The modified Items with lowercase identifiers will now be visible to users accessing `my-collection` in the STAC API.
276
276
277
277
278
-
## Basic Auth
279
-
280
-
#### Environment Variable Configuration
281
-
282
-
Basic authentication is an optional feature that can be enabled through [Route Dependencies](#route-dependencies).
283
-
284
-
285
-
### Example Configuration
286
-
287
-
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.
See `docker-compose.basic_auth_protected.yml`and `docker-compose.basic_auth_public.yml` for basic authentication configurations.
280
+
Authentication is an optional feature that can be enabled through `Route Dependencies` examples can be found and a more detailed explanation in [examples/auth](examples/auth).
0 commit comments