swagger_ui
In order to allow customization fo the Swagger UI's OAuth2 configuration, we support
overriding the default handler. This is useful for adding custom parameters such as
usePkceWithAuthorizationCodeGrant or clientId.
See: - swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/
SwaggerUI
dataclass
¶
Swagger UI handler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
openapi_url
|
str
|
|
required |
title
|
str | None
|
|
'STAC API'
|
init_oauth
|
dict
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
parameters
|
dict
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
oauth2_redirect_url
|
str
|
|
'/docs/oauth2-redirect'
|
Source code in src/stac_auth_proxy/handlers/swagger_ui.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
route(req: Request) -> HTMLResponse
async
¶
Route handler.
Source code in src/stac_auth_proxy/handlers/swagger_ui.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |