method
decode_credentials
v7.1.3.2 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Digest
decode_credentials(header)public
No documentation available.
# 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