|
87 | 87 | Server,
|
88 | 88 | Tag,
|
89 | 89 | )
|
90 |
| - from aws_lambda_powertools.event_handler.openapi.oauth2 import OAuth2Config |
91 | 90 | from aws_lambda_powertools.event_handler.openapi.params import Dependant
|
92 | 91 | from aws_lambda_powertools.event_handler.openapi.types import (
|
93 | 92 | TypeModelOrEnum,
|
@@ -1670,7 +1669,6 @@ def enable_swagger(
|
1670 | 1669 | contact: Optional["Contact"] = None,
|
1671 | 1670 | license_info: Optional["License"] = None,
|
1672 | 1671 | swagger_base_url: Optional[str] = None,
|
1673 |
| - oauth2: Optional["OAuth2Config"] = None, |
1674 | 1672 | middlewares: Optional[List[Callable[..., Response]]] = None,
|
1675 | 1673 | compress: bool = False,
|
1676 | 1674 | ):
|
@@ -1703,8 +1701,6 @@ def enable_swagger(
|
1703 | 1701 | The license information for the exposed API.
|
1704 | 1702 | swagger_base_url: str, optional
|
1705 | 1703 | The base url for the swagger UI. If not provided, we will serve a recent version of the Swagger UI.
|
1706 |
| - oauth2: OAuth2Config, optional |
1707 |
| - The OAuth2 configuration for the Swagger UI. |
1708 | 1704 | middlewares: List[Callable[..., Response]], optional
|
1709 | 1705 | List of middlewares to be used for the swagger route.
|
1710 | 1706 | compress: bool, default = False
|
@@ -1769,7 +1765,6 @@ def swagger_handler():
|
1769 | 1765 | swagger_js,
|
1770 | 1766 | swagger_css,
|
1771 | 1767 | swagger_base_url,
|
1772 |
| - oauth2, |
1773 | 1768 | )
|
1774 | 1769 |
|
1775 | 1770 | return Response(
|
|
0 commit comments