Просмотр исходного кода

fix the opentalent domain recorded into helloasso db

Olivier Massot 4 месяцев назад
Родитель
Сommit
a7a2fc35a2
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      doc/helloasso.md
  2. 1 1
      src/Service/HelloAsso/ConnectionService.php

+ 1 - 1
doc/helloasso.md

@@ -16,7 +16,7 @@ ou l’affichage de billetteries HelloAsso sur les pages de détails des évène
 Les identifiants et clés d'API sont fournis par Helloasso, et enregistrés comme variables d'environnement (voir variables 
 Les identifiants et clés d'API sont fournis par Helloasso, et enregistrés comme variables d'environnement (voir variables 
 `HELLOASSO_****`).
 `HELLOASSO_****`).
 
 
-On enregistre comme domaine de redirection le domaine opentalent.fr : https://opentalent.fr/ 
+On enregistre comme domaine de redirection le domaine opentalent.fr : https://*.opentalent.fr/ 
 (voir: `ConnectionService::setupOpentalentDomain()`)
 (voir: `ConnectionService::setupOpentalentDomain()`)
 
 
 ### Sandbox
 ### Sandbox

+ 1 - 1
src/Service/HelloAsso/ConnectionService.php

@@ -50,7 +50,7 @@ class ConnectionService extends ApiRequestService
      */
      */
     public function setupOpentalentDomain(): void {
     public function setupOpentalentDomain(): void {
         $accessToken = $this->fetchAccessToken(null);
         $accessToken = $this->fetchAccessToken(null);
-        $this->updateDomain($accessToken, $this->publicAppBaseUrl);
+        $this->updateDomain($accessToken, "https://*.opentalent.fr");
     }
     }
 
 
     /**
     /**