code: def _load_endpoints_to_config(self, provider, target_entity_id, config=None):
          
          idp_conf = copy.deepcopy(config or self.idp_config)
          for service, endpoint in self.endpoints.items():
              idp_endpoints = []
              for binding, path in endpoint.items():
                  url = "{base}/{provider}/{target_id}/{path}".format(
                      base=self.base_url, provider=provider,
                      target_id=target_entity_id, path=path)
                  idp_endpoints.append((url, binding))
              idp_conf["service"]["idp"]["endpoints"][service] = idp_endpoints
          return idp_conf
docs: Loads approved endpoints to the config.
  
          :type url_base: str
          :type provider: str
          :type target_entity_id: str
          :rtype: dict[str, Any]
  
          :param url_base: The proxy base url
          :param provider: target backend name
          :param target_entity_id: frontend target entity id
          :return: IDP config with endpoints