method
decode_credentials
v5.2.3 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Digest
decode_credentials(header)public
No documentation available.
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 248
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