Skip to content

Basic Auth shouldn't require a password #2114

@drewish

Description

@drewish

The BasicAuth dialog shouldn't require a password. I've got an API I'm trying to use that only requires a username. There is no password so I should be able to submit the empty string.

  • swagger-ui version 2.1.4
  • a swagger file reproducing the issue
swagger: '2.0'
info:
  title: Demo
  version: vDemo
host: example.com
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- api_key: []
paths:
  /sites:
    get:
      summary: List of sites
      tags:
      - site
      description: This route is most useful for finding a site's ID for subsequent requests.
      responses:
        default:
          description: Something.


securityDefinitions:
  api_key:
    type: basic
    description: Enter the API key as the username and set the password to an empty string. You can locate and manage your API keys from the API Credentials page.

screen shot 2016-04-22 at 12 46 59 pm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions