Method: ActionController::HttpAuthentication::Basic#encode_credentials

Defined in:
lib/action_controller/metal/http_authentication.rb

#encode_credentials(user_name, password) ⇒ Object



106
107
108
# File 'lib/action_controller/metal/http_authentication.rb', line 106

def encode_credentials(user_name, password)
  "Basic #{::Base64.strict_encode64("#{user_name}:#{password}")}"
end