method
encode_credentials
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionController::HttpAuthentication::Basic
encode_credentials(user_name, password)
public
Hide source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 131 def encode_credentials(user_name, password) "Basic #{::Base64.strict_encode64("#{user_name}:#{password}")}" end