def _oauth2_web_server_flow_params(kwargs):
 params = {'access_type': 'offline', 'response_type': 'code'}
 params.update(kwargs)
 approval_prompt = params.get('approval_prompt')
 if (approval_prompt is not None):
  logger.warning('The approval_prompt parameter for OAuth2WebServerFlow is deprecated. Please use the prompt parameter instead.')
  if (approval_prompt == 'force'):
   logger.warning('approval_prompt="force" has been adjusted to prompt="consent"')
   params['prompt'] = 'consent'
   del params['approval_prompt']
 return params

def _oauth2_web_server_flow_params ( kwargs ) : params = { 'access_type' : 'offline' , 'response_type' : 'code' } params . update ( kwargs ) approval_prompt = params . get ( 'approval_prompt' ) if ( approval_prompt is not None ) : logger . warning ( 'The approval_prompt parameter for OAuth2WebServerFlow is deprecated. Please use the prompt parameter instead.' ) if ( approval_prompt == 'force' ) : logger . warning ( 'approval_prompt="force" has been adjusted to prompt="consent"' ) params [ 'prompt' ] = 'consent' del params [ 'approval_prompt' ] return params
configures redirect uri parameters for oauth2webserverflow .