Skip to content
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

SecurityScheme validation incorrectly rejects specifications using custom scheme value for authorization header #786

Open
rjelierse opened this issue Apr 25, 2023 · 0 comments

Comments

@rjelierse
Copy link

REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry.

Source: https://spec.openapis.org/oas/v3.0.3#security-scheme-object

The specifications mention it SHOULD be a registered scheme, so, in my opinion, the library shouldn't fail validation of the specifications if it isn't one of the values currently checked for.

I'm happy to create a PR to mitigate this, if you think this is behaviour that needs correction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant