instance method
decode_credentials
Ruby on Rails 2.3.18
Since v2.3.18Signature
decode_credentials(header)
No documentation comment.
Parameters
-
headerreq
Source
# 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
Defined in actionpack/lib/action_controller/http_authentication.rb line 229
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest