Forum Discussion
ponelat
4 years agoStaff
OpenAPI 3.x supports JWT as a bearer format, but so far it's mostly for documentation purposes. Not sure how well tools handle it.
You can see an example here: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#jwt-bearer-sample
A minimal example: https://app.swaggerhub.com/apis/ponelat/example-jwt/1.0.0
Or inlined...
openapi: 3.0.3
info:
title: Minimal
version: 1.0.0
components:
securitySchemes:
FooSecurity:
type: http
scheme: bearer
bearerFormat: JWT
paths:
/foo:
get:
security:
- FooSecurity: []
description: Get a bunch of Foos
responses:
200:
description: A bunch of Foos
Related Content
- 5 years ago
- 4 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago