This project is archived and is in readonly mode.
Patch to fix broken HTTP Digest Authentication
-
Don Parish
- Tag changed from authentication, bug, digest, patch to 2.3, authentication, bug, digest, patch
- Title changed from HTTP Digest Authentication Broken to Patch to fix broken HTTP Digest Authentication
-
Don Parish
Updated the patch with a test.
-
DHH
- Assigned user set to Pratik
- Milestone cleared.
-
Don Parish
Updated patch to include test. This patch is also posted at #1230 Implement HTTP Digest authentication.
-
Repository
- State changed from new to resolved
(from [86d8f922828677e64892c166adf26cd421f0991a]) Fixed http digest authentication to use credentials URI passed from client. [#1848 Patch to fix broken HTTP Digest Authentication state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
-
José Valim
HTTP digest still does not work on Rails master neither v2.3.3 on Firefox.
Apparently, this changed got lost on both, although the test is there. But since it still pass, it means that it was not testing the proper thing.
-
Pratik
- Milestone set to 2.3.4
- State changed from resolved to open
-
Pratik
Jose, do you have the fix ?
Thanks.
-
José Valim
I will work on a patch during the weekend!
-
José Valim
@pratik, here goes the patch.
And we have two problems:
-
Some servers, as webrick, gives the full url in REQUEST_URI. If a browser (as Safari) give the relative uri in credentials, http digest won't work.
-
And as @donparish said some browsers can give the full url in credentials, not matching if the server uses the relative uri.
The patch solves both cases by checking if the credential given is a path or full uri (i.e. if it starts with "/" or not). I've also added tests for each of those combinations.
I tested in "real life" with Firefox on Linux on both webrick and thin. Would be nice if some tests would be executed with Safari and IE with both servers.
-
-
José Valim
Apparently the problem with S3 and Lighthouse is not yet fixed.
Here is the patch: http://pastie.org/551062 -
José Valim
- State changed from open to resolved
I've moved the new ticket to #3006 Patch to fix broken HTTP Digest Authentication for bugmash purposes.
