original_docstring: Add authorization config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :returns: None
      :rtype: None
      
docstring: Add authorization config to context.
docstring_tokens: Add authorization config to context .
code: def add_auth_config(ctxt):
      """Add authorization config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :returns: None
      :rtype: None
      """
      overcloud_auth = openstack_utils.get_overcloud_auth()
      ctxt['proto'] = urllib.parse.urlparse(overcloud_auth['OS_AUTH_URL']).scheme
      ctxt['admin_username'] = overcloud_auth['OS_USERNAME']
      ctxt['admin_password'] = overcloud_auth['OS_PASSWORD']
      if overcloud_auth['API_VERSION'] == 3:
          ctxt['admin_project_name'] = overcloud_auth['OS_PROJECT_NAME']
          ctxt['admin_domain_name'] = overcloud_auth['OS_DOMAIN_NAME']
          ctxt['default_credentials_domain_name'] = (
              overcloud_auth['OS_PROJECT_DOMAIN_NAME'])
code_tokens: def add_auth_config ( ctxt ) : overcloud_auth = openstack_utils . get_overcloud_auth ( ) ctxt [ 'proto' ] = urllib . parse . urlparse ( overcloud_auth [ 'OS_AUTH_URL' ] ) . scheme ctxt [ 'admin_username' ] = overcloud_auth [ 'OS_USERNAME' ] ctxt [ 'admin_password' ] = overcloud_auth [ 'OS_PASSWORD' ] if overcloud_auth [ 'API_VERSION' ] == 3 : ctxt [ 'admin_project_name' ] = overcloud_auth [ 'OS_PROJECT_NAME' ] ctxt [ 'admin_domain_name' ] = overcloud_auth [ 'OS_DOMAIN_NAME' ] ctxt [ 'default_credentials_domain_name' ] = ( overcloud_auth [ 'OS_PROJECT_DOMAIN_NAME' ] )
short_docstring: Add authorization config to context.
short_docstring_tokens: Add authorization config to context .
comment: """Add authorization config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :returns: None
      :rtype: None
      """