add setBearerToken method for oauth2