docs: def create_provider_directory(provider, redirect_uri):
      """Helper function for creating a provider directory"""
      dir = CLIENT.directories.create({
          'name': APPLICATION.name + '-' + provider,
          'provider': {
              'client_id': settings.STORMPATH_SOCIAL[provider.upper()]['client_id'],
              'client_secret': settings.STORMPATH_SOCIAL[provider.upper()]['client_secret'],
              'redirect_uri': redirect_uri,
              'provider_id': provider,
          },
      })
  
      APPLICATION.account_store_mappings.create({
          'application': APPLICATION,
          'account_store': dir,
          'list_index': 99,
          'is_default_account_store': False,
          'is_default_group_store': False,
      })