From 38b656a04b2c93a64b71026e1b04d965e1fa4ac6 Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Thu, 17 Nov 2022 15:54:31 +0100
Subject: [PATCH] feat: update url calls to adict/v2

---
 main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 6f9e87b..c50a7e5 100644
--- a/main.go
+++ b/main.go
@@ -659,7 +659,7 @@ func main() {
 		data2.Set("client_secret", clientSecret)
 		data2.Set("grant_type", "client_credentials")
 		data2.Set("redirect_uri", redirectUri)
-		data2.Set("scope", "/adict/v1")
+		data2.Set("scope", "/adict/v2")
 
 		// log.Debug("WL - GrdfInfo - Token - data sent is: ", data2)
 		log.Info("WL - GrdfInfo - Token - send request to access_token endpoint with client_credentials: ", tokenUrl)
-- 
GitLab