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

Fix issue #458: Basic authentication fails when specifying credentials for a realm that contains uppercase characters #459

Merged
merged 6 commits into from Feb 19, 2016

Conversation

chris-reeves
Copy link
Contributor

This PR fixes issue #458: Basic authentication fails when specifying credentials for a realm that contains uppercase characters.

This PR adds various tests for case sensitivity in realm name and fixes the issue itself.

All tests pass with this fix.

As per RFC 1945 (section 11) and RFC 2617, the realm value is case sensitive.
This commit adds tests for realm case sensitivity in
Mechanize::HTTP::AuthStore.
As per RFC 1945 (section 11) and RFC 2617, the realm value is case sensitive.
This commit adds tests for realm case sensitivity in
Mechanize::HTTP::AuthRealm.
As per RFC 1945 (section 11) and RFC 2617, the realm value is case sensitive.
This commit adds tests for realm case sensitivity in
Mechanize::HTTP::AuthChallenge.
As per RFC 1945 (section 11) and RFC 2617, the realm value is case sensitive.
This commit adds tests for realm case sensitivity in
Mechanize::HTTP::WWWAuthenticateParser.
As per RFC 1945 (section 11) and RFC 2617, the realm name is case sensitive.
This commit stops Mechanize::HTTP::AuthRealm#initialize downcasing the passed
realm name.

Resolves sparklemotion#458.
knu added a commit that referenced this pull request Feb 19, 2016
Fix issue #458: Basic authentication fails when specifying credentials for a realm that contains uppercase characters
@knu knu merged commit 0ce2976 into sparklemotion:master Feb 19, 2016
@knu
Copy link
Member

knu commented Feb 19, 2016

Looks good, I'll add an entry to CHANGELOG.rdoc shortly. Thanks for your contribution!

knu added a commit that referenced this pull request Feb 19, 2016
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.

None yet

2 participants