Add Digest HTTP Authentication with Basic Auth Fallback by derhelge · Pull Request #3074 · ytti/oxidized · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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 patch introduces the ability to perform Digest HTTP authentication when making requests. If Digest authentication is not required or fails, the method falls back to Basic authentication. This enhancement provides more flexibility in handling different authentication schemes and improves compatibility with various systems.
Hi @ytti thanks for accepting the pull request. Unfortunately i introduced a bug:
Line 60 in http.rb should be: if res.code == '401' && res['www-authenticate']&.include?('Digest')
Elsewhat basic auth stops working because res['www-authenticate'] is nil. Sorry
This PR introduced RuboCop Warnings (Layout/TrailingWhitespace).
The GitHub checks did not run (I don't know why), so it could not easily been seen.
These warnings will be fixed with PR #3079.
Thanks @robertcheramy
I apologize that you had extra work due to my inability. I am not a Ruby developer and am still learning how to use oxidized dev-wise.
<
3047
div hidden>
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This patch introduces the ability to perform Digest HTTP authentication when making requests. If Digest authentication is not required or fails, the method falls back to Basic authentication. This enhancement provides more flexibility in handling different authentication schemes and improves compatibility with various systems.
Fixes #2685.