Skip to content

Commit af6bac1

Browse files
author
Justin
committed
mutualtls security scheme implementation
1 parent 497e6cf commit af6bac1

File tree

1 file changed

+6
-1
lines changed
  • aws_lambda_powertools/event_handler/openapi

1 file changed

+6
-1
lines changed

aws_lambda_powertools/event_handler/openapi/models.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ class SecuritySchemeType(Enum):
363363
http = "http"
364364
oauth2 = "oauth2"
365365
openIdConnect = "openIdConnect"
366+
mutualTLS = 'mutualTLS'
366367

367368

368369
class SecurityBase(OpenAPIExtensions):
@@ -440,7 +441,11 @@ class OpenIdConnect(SecurityBase):
440441
openIdConnectUrl: str
441442

442443

443-
SecurityScheme = Union[APIKey, HTTPBase, OAuth2, OpenIdConnect, HTTPBearer]
444+
class MutualTLS(SecurityBase):
445+
type_: SecuritySchemeType = Field(default=SecuritySchemeType.mutualTLS, alias="type")
446+
447+
448+
SecurityScheme = Union[APIKey, HTTPBase, OAuth2, OpenIdConnect, HTTPBearer, MutualTLS]
444449

445450

446451
# https://swagger.io/specification/#components-object

0 commit comments

Comments
 (0)