Method: ActionController::HttpAuthentication::Token::ControllerMethods#authenticate_or_request_with_http_token

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

#authenticate_or_request_with_http_token(realm = "Application", &login_procedure) ⇒ Object



389
390
391
# File 'lib/action_controller/metal/http_authentication.rb', line 389

def authenticate_or_request_with_http_token(realm = "Application", &)
  authenticate_with_http_token(&) || request_http_token_authentication(realm)
end