Method: ActionController::HttpAuthentication::Token::ControllerMethods#authenticate_with_http_token

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

#authenticate_with_http_token(&login_procedure) ⇒ Object

Authenticate using an HTTP Bearer token. Returns the return value of login_procedure if a token is found. Returns nil if no token is found.

See ActionController::HttpAuthentication::Token for example usage.



446
447
448
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 446

def authenticate_with_http_token(&)
  Token.authenticate(self, &)
end