method
decode_credentials
v2.3.8 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Digest
decode_credentials(header)public
No documentation available.
# File actionpack/lib/action_controller/http_authentication.rb, line 229
def decode_credentials(header)
header.to_s.gsub(/^Digest\s+/,'').split(',').inject({}.with_indifferent_access) do |hash, pair|
key, value = pair.split('=', 2)
hash[key.strip] = value.to_s.gsub(/^"|"$/,'').gsub(/'/, '')
hash
end
end