Open
Description
I am not sure how to use Security in combination with SecurityRequirements.
The Security Schema defined:
new OpenApi([
'components' => new Components([
'securitySchemes' => [
'BearerAuth' => new SecurityScheme([
'type' => 'http',
'scheme' => 'bearer',
'bearerFormat' => 'AuthToken and JWT Format' # optional, arbitrary value for documentation purposes
])
],
]),
]);
Now the security schema is created (components
).
How do i assign this security schema for an specific operation?
return new PathItem([
'get' => new Operation([
'security' => [new SecurityRequirement(['BearerAuth'])],
])
]);
Thanks for the great library and maybe it clarifies this task also for others.