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
While the project is designed to work out-of-the-box as an application, it might not address every projects needs. When the need for customization arises, the codebase can instead be treated as a library of components that can be used to augment a FastAPI server. This may look something like the following:
44
+
While the STAC Auth Proxy is designed to work out-of-the-box as an application, it might not address every projects needs. When the need for customization arises, the codebase can instead be treated as a library of components that can be used to augment a FastAPI server.
45
+
46
+
This may look something like the following:
45
47
46
48
```py
47
49
from fastapi import FastAPI
48
50
from stac_fastapi.api.app import StacApi
49
-
from stac_auth_proxy importbuild_lifespan, configure_app, Settings as StacAuthSettings
51
+
from stac_auth_proxy import configure_app, Settings as StacAuthSettings
50
52
51
53
# Create Auth Settings
52
54
auth_settings = StacAuthSettings(
53
-
upstream_url='https://stac-server',
55
+
upstream_url='https://stac-server',# Dummy value, we don't make use of this value in non-proxy mode
0 commit comments