123456789_123456789_123456789_123456789_123456789_

Module: ActionController::HttpAuthentication::Basic::ControllerMethods

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
::ActionController::Base, ::ActionView::TestCase::TestController, Rails::ApplicationController, Rails::InfoController, Rails::MailersController, Rails::WelcomeController
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: actionpack/lib/action_controller/metal/http_authentication.rb

Class Method Summary

Instance Method Summary

Instance Method Details

#authenticate_or_request_with_http_basic(realm = "Application", &login_procedure)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 82

def authenticate_or_request_with_http_basic(realm = "Application", &)
  authenticate_with_http_basic(&) || request_http_basic_authentication(realm)
end

#authenticate_with_http_basic(&login_procedure)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 86

def authenticate_with_http_basic(&)
  HttpAuthentication::Basic.authenticate(request, &)
end

#request_http_basic_authentication(realm = "Application")

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 90

def request_http_basic_authentication(realm = "Application")
  HttpAuthentication::Basic.authentication_request(self, realm)
end