Skip to content
Snippets Groups Projects
Commit d9395068 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

grdf endpoints on master

parent 4936464d
No related branches found
No related tags found
No related merge requests found
Pipeline #7777 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment