I am not sure how to use Security in combination with SecurityRequirements.
The Security Schema defined:
newOpenApi([
'components' => newComponents([
'securitySchemes' => [
'BearerAuth' => newSecurityScheme([
'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?
returnnewPathItem([
'get' => newOperation([
'security' => [newSecurityRequirement(['BearerAuth'])],
])
]);
Thanks for the great library and maybe it clarifies this task also for others.
I am not sure how to use Security in combination with SecurityRequirements.
The Security Schema defined:
Now the security schema is created (
components).How do i assign this security schema for an specific operation?
Thanks for the great library and maybe it clarifies this task also for others.