Authenticate a REST call using a token.