-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Is security scheme
value lowercase or case-insensitive?
#1876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@hkosova As per RFC7235 auth scheme is case insensitive:
|
scheme should be case insensitive OAI/OpenAPI-Specification#1876 https://tools.ietf.org/html/rfc7235#section-2.1
As per RFC7235 auth scheme is case insensitive. 2.1. Challenge and Response HTTP provides a simple challenge-response authentication framework that can be used by a server to challenge a client request and by a client to provide authentication information. It uses a case- insensitive token as a means to identify the authentication scheme, followed by additional information necessary for achieving. https://tools.ietf.org/html/rfc7235#section-2.1 Refs #1531, #1473 Refs OAI/OpenAPI-Specification#1876 Refs swagger-api/swagger-ui#5965
As per RFC7235 auth scheme is case insensitive. 2.1. Challenge and Response HTTP provides a simple challenge-response authentication framework that can be used by a server to challenge a client request and by a client to provide authentication information. It uses a case- insensitive token as a means to identify the authentication scheme, followed by additional information necessary for achieving. https://tools.ietf.org/html/rfc7235#section-2.1 Refs #1531, #1473 Refs OAI/OpenAPI-Specification#1876 Refs swagger-api/swagger-ui#5965
As per RFC7235 auth scheme is case insensitive. 2.1. Challenge and Response HTTP provides a simple challenge-response authentication framework that can be used by a server to challenge a client request and by a client to provide authentication information. It uses a case- insensitive token as a means to identify the authentication scheme, followed by additional information necessary for achieving. https://tools.ietf.org/html/rfc7235#section-2.1 Co-authored-by: Helen Kosova <[email protected]> Refs #1531, #1473 Refs OAI/OpenAPI-Specification#1876 Refs swagger-api/swagger-ui#5965
The
scheme
field of the Security Scheme Object is defined as follows:and subsequent examples use
scheme: basic
andscheme: bearer
- with lowercase scheme names.However, the Authentication Scheme Registry defines the scheme names starting with an uppercase letter:
Could you please clarify if the
scheme
value must be lowercase, or if bothscheme: basic
(as in the current examples) andscheme: Basic
(as in the Auth Scheme Registry) are valid and equivalent?The text was updated successfully, but these errors were encountered: