QID 570065
QID 570065: JWTs must explicitly declare support for `RFC8725`
Swagger definition should have security schemes definitions based on swagger specification. Analysis of swagger has determined the RFC8725 missing the description.
Swagger API users do not have clarity since the description does not mention the RFC specification. The swagger is not compliant to swagger specification and results in an error.
Solution
Security schemes using JWTs must explicitly declare support for RFC8725 in the description. For example:
openapi: "3.0" info: version: "1.0" components: securitySchemes: "authWithJWT": type: oauth2 description: RFC8725 Compliant JWT "bearerWithJWT": type: http bearerFormat: jwt description: "This is also a RFC8725 compliant JWT
openapi: "3.0" info: version: "1.0" components: securitySchemes: "authWithJWT": type: oauth2 description: RFC8725 Compliant JWT "bearerWithJWT": type: http bearerFormat: jwt description: "This is also a RFC8725 compliant JWT
Vendor References
CVEs related to QID 570065
Software Advisories
| Advisory ID | Software | Component | Link |
|---|