instance method
encode_credentials
Ruby on Rails 3.1.12
Since v2.3.18Signature
encode_credentials(http_method, credentials, password, password_is_ha1)
No documentation comment.
Parameters
-
http_methodreq -
credentialsreq -
passwordreq -
password_is_ha1req
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 220
def encode_credentials(http_method, credentials, password, password_is_ha1)
credentials[:response] = expected_response(http_method, credentials[:uri], credentials, password, password_is_ha1)
"Digest " + credentials.sort_by {|x| x[0].to_s }.map {|v| "#{v[0]}='#{v[1]}'" }.join(', ')
end
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 220
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest