-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
Description
When reporting an issue, please provide the following details:
- swagger-ui version - 3.0.11
- a swagger file reproducing the issue:
securityDefinitions: {
OAuth2: {
type: "oauth2",
scopes: {
"api": "API access"
},
flow: "application",
tokenUrl: "/api/v3/oauth/token"
}
},
security: [{"OAuth2": []}]
According to spec at https://tools.ietf.org/html/rfc6749:
For "password" flow "username" and "password" should be passed in the body using the "application/x-www-form-urlencoded" and "client_id" and "client_password" should be passed via basic auth.
For "application" flow "client_id" and "client_password" should just be passed via basic auth.
Currently none of the options available for "password" flow provide the ability to authorize the way specification suggests since they don't actually send client credentials the way specification suggests.
Also maybe specification way should be the default one.