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