instance method
decode_credentials
Ruby on Rails 7.0.10
Since v2.3.18Signature
decode_credentials(header)
No documentation comment.
Parameters
-
headerreq
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 262
def decode_credentials(header)
ActiveSupport::HashWithIndifferentAccess[header.to_s.gsub(/^Digest\s+/, "").split(",").map do |pair|
key, value = pair.split("=", 2)
[key.strip, value.to_s.gsub(/^"|"$/, "").delete("'")]
end]
end
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 262
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest