OAuth2 credentials and private method