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
Currently, we inject an OIDC auth scheme into the OpenAPI spec. However,
users may want to run the STAC Auth Proxy to apply auth for tokens that
are generated elsewhere (e.g. tokens that can be validated with a JWKS,
but are not generated via the `/token` or `/authorization` endpoint). As
such, this PR enables the manual override of the auth scheme that we
inject into the OpenAPI doc, configurable via env vars.
Copy file name to clipboardExpand all lines: README.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
@@ -123,10 +123,19 @@ The application is configurable via environment variables.
123
123
- **Type:** boolean
124
124
- **Required:** No, defaults to `true`
125
125
- **Example:** `false`, `1`, `True`
126
+
- OpenAPI
126
127
- **`OPENAPI_SPEC_ENDPOINT`**, path of OpenAPI specification, used for augmenting spec response with auth configuration
127
128
- **Type:** string or null
128
129
- **Required:** No, defaults to `null` (disabled)
129
130
- **Example:** `/api`
131
+
- **`OPENAPI_AUTH_SCHEME_NAME`**, name of the auth scheme to use in the OpenAPI spec
132
+
- **Type:** string
133
+
- **Required:** No, defaults to `oidcAuth`
134
+
- **Example:** `jwtAuth`
135
+
- **`OPENAPI_AUTH_SCHEME_OVERRIDE`**, override for the auth scheme in the OpenAPI spec
136
+
- **Type:** JSON object
137
+
- **Required:** No, defaults to `null` (disabled)
138
+
- **Example:** `{"type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "Paste your raw JWT here. This API uses Bearer token authorization.\n"}`
130
139
- Filtering
131
140
- **`ITEMS_FILTER_CLS`**, CQL2 expression generator for item-level filtering
132
141
- **Type:** JSON object with class configuration
@@ -139,7 +148,7 @@ The application is configurable via environment variables.
139
148
- **`ITEMS_FILTER_KWARGS`**, Keyword arguments for CQL2 expression generator
140
149
- **Type:** Dictionary of keyword arguments used to initialize the class
0 commit comments