Skip to content

"password" and "application" flows are broken #3128

@Naid405

Description

@Naid405

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions