Source: show | on GitHub
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 120 120: def authenticate_or_request_with_http_basic(realm = "Application", &login_procedure) 121: authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm) 122: end
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 124 124: def authenticate_with_http_basic(&login_procedure) 125: HttpAuthentication::Basic.authenticate(request, &login_procedure) 126: end
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 128 128: def request_http_basic_authentication(realm = "Application") 129: HttpAuthentication::Basic.authentication_request(self, realm) 130: end