Open CS76 opened 2 months ago
Hello, I would like to enable Bearer token based authentication across various endpoings (resources). How do we define security schemes globally? to generate the following in the open-api.json
"components": { "securitySchemes": { "sanctum": { "type": "apiKey", "description": "Enter token in format (Bearer <token>)", "name": "Authorization", "in": "header" } } }
and then be able to register endpoints to use the schemes?
Thanks in advance
Hello, Its not currently available but will be a nice feature to have 😄 For now youll need to replicate the code when necessary
Description
Hello, I would like to enable Bearer token based authentication across various endpoings (resources). How do we define security schemes globally? to generate the following in the open-api.json
and then be able to register endpoints to use the schemes?
Thanks in advance