Method: ActionController::HttpAuthentication::Basic#authenticate

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

#authenticate(request, &login_procedure) ⇒ Object



126
127
128
129
130
# File 'lib/action_controller/metal/http_authentication.rb', line 126

def authenticate(request, &)
  unless request.authorization.blank?
    .call(*user_name_and_password(request))
  end
end