developmentseed / developmentseed/stac-auth-proxy

Pass request to filter factories

Open
#102 0 comments 0 reactions 0 assignees View on GitHub
feat refactor
Dominant language
Python
Stars
46
Forks
8
Avg merge
1d 7h
Merged PRs (30d)
2

Description

Currently, we pass a simple dictionary to the `filter_builder`:

https://github.com/developmentseed/stac-auth-proxy/blob/0ba2237f8a0d6c9574db899ee050224d5a3b3b0c/src/stac_auth_proxy/middleware/Cql2BuildFilterMiddleware.py#L79-L90

We should ensure that the request itself is exposed to the filter factory, enabling access to any available property within that request (such as DB connections that are available on the `request.app`).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.