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

Need to make authorization schemes case insensitive #3501

Open
VimukthiRajapaksha opened this issue Jan 7, 2025 · 0 comments
Open

Need to make authorization schemes case insensitive #3501

VimukthiRajapaksha opened this issue Jan 7, 2025 · 0 comments

Comments

@VimukthiRajapaksha
Copy link

Current Limitation

There appears to be a contradiction in the OAuth specifications regarding the case sensitivity of the "Bearer" scheme. While the examples in the Bearer Token Usage specification suggest the token type is case-sensitive as "Bearer," the same specification refers to the HTTP Authentication specification, which clearly states that the scheme is case-insensitive. This inconsistency has created confusion about the expected behavior. The OAuth Working Group has addressed this issue by including a note in the upcoming OAuth 2.1 specification, explicitly clarifying that the token type is case-insensitive. Additionally, the HTTP Semantics specification reaffirms that authentication scheme names are case-insensitive.

Suggested Improvement

Our current implementation treats authorization schemes as case-sensitive, which conflicts with the clarified specifications. To align with these standards and eliminate any ambiguity, we suggest modifying the implementation to treat the authorization schemes such as "Bearer" as case-insensitive. This change will ensure compliance and improve interoperability.

Version

No response

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

No branches or pull requests

1 participant