Replies: 2 comments 6 replies
-
|
I can only think of hypothetical use cases for now so I am closing this for now, but I am happy to implement this if anyone wants to use it. |
Beta Was this translation helpful? Give feedback.
-
|
@ahx My use case for this would be that the security is checked and rejected (with a 401) if the security data isnt validated. Much like checking the type parameters of a schema, it is checking the schema of the security scheme. I could of course move the authentication to a rack middleware and put it in front of OpenAPIFirst but I think it would be a useful addition to this great piece of software. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
OpenapiFirst::Request#securityshould return information about the security scheme of the current operation and it's scopes/values. If no security scheme is defined for the operation, it should return the top-level security scheme if that is defined.See specification: Operation, Security Scheme
Beta Was this translation helpful? Give feedback.
All reactions