instance method
encode_credentials
Ruby on Rails 2.3.18
Since v2.2.3Signature
encode_credentials(user_name, password)
No documentation comment.
Parameters
-
user_namereq -
passwordreq
Source
# File actionpack/lib/action_controller/http_authentication.rb, line 145
def encode_credentials(user_name, password)
"Basic #{ActiveSupport::Base64.encode64("#{user_name}:#{password}")}"
end
Defined in actionpack/lib/action_controller/http_authentication.rb line 145
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Basic