rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

Hard to distinguish between Basic Auth and Bearer auth #993

Closed CoenraadS closed 11 months ago

CoenraadS commented 11 months ago

I have a schema:

"securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Use Basic Authorization in the Authorization header.",
        "scheme": "Basic"
      },
      "Bearer": {
        "type": "http",
        "description": "Add API Token using Bearer scheme in the Authorization header.",
        "scheme": "bearer"
      }
    }

Authorization section:

image

Endpoints:

image (The tootip description is also the same for both of them)

I would like to see for Basic auth, it is labeled as 'Basic' instead of 'Http Bearer'

CoenraadS commented 11 months ago

Scheme should be lowercase:

"securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Use Basic Authorization in the Authorization header.",
        "scheme": "basic"
      },
      "Bearer": {
        "type": "http",
        "description": "Add API Token using Bearer scheme in the Authorization header.",
        "scheme": "bearer"
      }
    }