We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c7535 commit 3ddeb9cCopy full SHA for 3ddeb9c
core/jwt.md
@@ -165,7 +165,7 @@ Want to test the routes of your JWT-authentication-protected API?
165
api_platform:
166
swagger:
167
api_keys:
168
- apiKey:
+ JWT:
169
name: Authorization
170
type: header
171
```
@@ -238,6 +238,13 @@ final class JwtDecorator implements OpenApiFactoryInterface
238
],
239
]);
240
241
+ $schemas = $openApi->getComponents()->getSecuritySchemes() ?? [];
242
+ $schemas['JWT'] = new ArrayObject([
243
+ 'type' => 'http',
244
+ 'scheme' => 'bearer',
245
+ 'bearerFormat' => 'JWT',
246
+ ]);
247
+
248
$pathItem = new Model\PathItem(
249
ref: 'JWT Token',
250
post: new Model\Operation(
0 commit comments