module ActionController::HttpAuthentication::Token::ControllerMethods

def authenticate_with_http_token(&login_procedure)

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

token is found. Returns +nil+ if no token is found.
Returns the return value of +login_procedure+ if a
Authenticate using an HTTP Bearer token.
def authenticate_with_http_token(&login_procedure)
  Token.authenticate(self, &login_procedure)
end