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:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionpack/lib/action_controller/metal/http_authentication.rb |
Class Method Summary
::ActiveSupport::Concern - Extended
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", &login_procedure) authenticate_with_http_basic(&login_procedure) || 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(&login_procedure) HttpAuthentication::Basic.authenticate(request, &login_procedure) 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