From 95e7ea5ddefa3917093c0c6b43ceb40b81c0f41a Mon Sep 17 00:00:00 2001
From: "ext.sopra.yvallet@grandlyon.com" <ext.sopra.yvallet@grandlyon.com>
Date: Tue, 13 Oct 2020 16:00:29 +0200
Subject: [PATCH] change cozyDomain redirection

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

diff --git a/main.go b/main.go
index ca8a952..caf0af7 100644
--- a/main.go
+++ b/main.go
@@ -226,7 +226,7 @@ func main() {
 		state := req_state[0:splitIndex]
 		host := req_state[splitIndex+1:]
 
-		cozyURL := "https://" + host + "." + "pchugo.wf.alpha.grandlyon.com" + *cozyGrdfRedirectURI
+		cozyURL := "https://" + host + "." + *cozyDomain + *cozyGrdfRedirectURI
 
 		redir := cozyURL + "?code=" + code + "&state=" + state
 		log.Debug("Redirect to -", redir)
-- 
GitLab