Skip to content

Is security scheme value lowercase or case-insensitive? #1876

@hkosova

Description

@hkosova

The scheme field of the Security Scheme Object is defined as follows:

The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.

and subsequent examples use scheme: basic and scheme: bearer - with lowercase scheme names.

However, the Authentication Scheme Registry defines the scheme names starting with an uppercase letter:

  • Basic
  • Bearer
  • Digest
  • ...

Could you please clarify if the scheme value must be lowercase, or if both scheme: basic (as in the current examples) and scheme: Basic (as in the Auth Scheme Registry) are valid and equivalent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions