Browse Source

fix the opentalent domain recorded into helloasso db

Olivier Massot 2 months ago
parent
commit
a7a2fc35a2
2 changed files with 2 additions and 2 deletions
  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");
     }
     }
 
 
     /**
     /**