DP007
2 years agoNew Contributor
Swagger
Dear All,
Is there any way to test Swagger documentation with MTLS authentication ?
Regards,
DP
Is there any way to test Swagger documentation with MTLS authentication ?
Regards,
DP
Given that Mutual TLS is not supported in Swagger/OpenAPI 2.0 and OpenAPI 3.0, it is not supported currently in Swagger UI and not in the short term roadmap, this comment provides a solution in a browser environment.
A possible avenue is to add a note in the description of your OpenAPI 3.0 or 2.0 definition (i.e.: info.description), with steps on how to add your client certificate into the users' browsers.
Mutual TLS has been added as a security type in OAS 3.1 and its support might be added in scope of OpenAPI 3.1 support but we have no ETA at the moment.
just adding a thread that talked about it:
https://github.com/swagger-api/swagger-ui/issues/8020