'Returns appropriate an OAuth2Parameters object for authentication.'

def _GetOAuth2Parameters(self):

    oauth2_parameters = appengine_rpc_httplib2.HttpRpcServerOAuth2.OAuth2Parameters(access_token=(self.options.oauth2_access_token or self._MaybeGetDevshellOAuth2AccessToken()), client_id=self.oauth_client_id, client_secret=self.oauth_client_secret, scope=self.oauth_scopes, refresh_token=self.options.oauth2_refresh_token, credential_file=self.options.oauth2_credential_file, token_uri=self._GetTokenUri())
    return oauth2_parameters
