-
Notifications
You must be signed in to change notification settings - Fork 9.1k
security scheme apiKey in body form data parameter #2419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you clarify if this is a question or a feature request? If the former, no it's not currently possible. If the latter, do you have an actual API which uses an API key in a request body? |
The question: Are there reasons against such a feature? Regarding an actual API: The OAuth2 token endpoint requires the client to authenticate via
This could be specified as
|
There is already an |
I understand the type But this does not help if you want to describe the API of the OAuth2 server itself using OpenAPI. |
Though oAuth2 operates over HTTP and can be said to have an API, I wonder whether it is itself an "HTTP API" within the meaning of the phrase used by the OpenAPI Specification, and there whether it is in scope here. |
The OAuth2 token endpoint was just an example. There could, of course, be more (and maybe more appropriate ones). |
I would find this feature helpful. Mandrill is one example that expects the API key in a body parameter: https://mandrillapp.com/api/docs/messages.curl.html#sts=/messages/search.json |
My question was about an API key in an |
This seems related/ necessary for #1875? Specifically the client authentication method using |
To clarify, does this boil down to adding a new value for |
It is possible to define a security scheme as
corresponding to
while the first approach adds the notion that the required parameter is related to security.
However there seems to be no way to define a security scheme about a required parameter in an
application/x-www-form-urlencoded
body adding the same security notion.The text was updated successfully, but these errors were encountered: