Skip to content

Change 'Authentication' to 'Authorization' #371

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

Merged

Conversation

jeroenheijmans
Copy link
Collaborator

Change 'Authentication' to 'Authorization'

Fixes #368

After further discussion and research in manfredsteyer#368 I noticed that even
though RFC 7617 seems to state that:

> Note that both scheme and parameter names are matched
> case-insensitively.

All the examples use "Basic" instead of "BASIC". There is one very
notable framework that checks case *sensitively* for "Basic". Given
that the header was incorrect anyways, we can be sure that changing
this casing won't further break anything, and work around issues for
server side frameworks like Spring.

See: https://tools.ietf.org/html/rfc7617
See: https://github.com/spring-projects/spring-security/blob/5.0.6.RELEASE/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java#L157

Fixes manfredsteyer#368
@manfredsteyer manfredsteyer merged commit 0cac039 into manfredsteyer:master Sep 19, 2018
@manfredsteyer
Copy link
Owner

Thx

@jeroenheijmans jeroenheijmans deleted the fix/basic-auth-header branch September 19, 2018 19:17
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

Successfully merging this pull request may close these issues.

2 participants