Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DigestAuthenticate with simulated HTTP methods.
Digest authentication headers depend on the original HTTP method. When we use simulated request methods, we break digest authentication as the hashes never match. This change adds `ORIGINAL_REQUEST_METHOD` to request->env(), which allows us to access the original HTTP method. I went down this route as I wanted to avoid more global dependencies, and I thought having a way to access the original HTTP method could be generally useful. Refs #4889
- Loading branch information
Showing
4 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters