diff --git a/main.go b/main.go index 8752a683157298450577f54991573b09d4866f18..197e38d96a71ae63f3f2b9d6179b77adfb4620c5 100644 --- a/main.go +++ b/main.go @@ -166,10 +166,10 @@ func main() { } instanceName := cozyOrigin[splitIndexStart+3:splitIndexEnd] - redirectProxy := "https://oauth-proxy.wf.alpha.grandlyon.com" + redirectProxy := "https://oauth-proxy.wf.alpha.grandlyon.com/redirect-grdf" authURL := "https://sofit-sso-oidc.grdf.fr/openam/oauth2/realms/externeGrdf/authorize" - redirectUrl := authURL + "?client_id=" + clientId + "&scope=openid&response_type=code&redirect_uri="+ redirectProxy + "&state=" + state + "-" + instanceName + redirectUrl := authURL + "?client_id=" + clientId + "&scope=openid&response_type=code&redirect_uri="+ redirectProxy + "&login_hint=Sebastien|Riera|sebastien.riera@laposte.net|Ecolyo&state=" + state + "-" + instanceName // TODO Add Login Hint in request log.Debug("Redirect to - ", redirectUrl) @@ -227,7 +227,7 @@ func main() { state := req_state[0:splitIndex] host := req_state[splitIndex+1:] - cozyURL := "https://" + host + "." + *cozyDomain + *cozyGrdfRedirectURI + cozyURL := "https://" + host + "." + "pchugo.wf.alpha.grandlyon.com" + *cozyGrdfRedirectURI redir := cozyURL + "?code=" + code + "&state=" + state log.Debug("Redirect to -", redir)