Skip to content
Snippets Groups Projects
Commit fae89d21 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

fix reply uri for auth endpoint

parent 375e1b4d
No related branches found
No related tags found
No related merge requests found
Pipeline #5375 passed
...@@ -59,9 +59,9 @@ func main() { ...@@ -59,9 +59,9 @@ func main() {
// Define the replyUri // Define the replyUri
referer := r.Header.Get("Referer") referer := r.Header.Get("Referer")
replyUri := strings.Replace(referer, "home.", "", 1) replyUri := strings.Replace(referer, "home.", "", 1)
replyUri = redirectUri + "accounts/enedis-konnector/redirect" replyUri = replyUri + "accounts/enedis-konnector/redirect"
fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Redirect to - ", replyUri) fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Reply to - ", replyUri)
// Get the response body as a string // Get the response body as a string
pageContentString := string(contents) pageContentString := string(contents)
// Replace redirectUri by the host in the body // Replace redirectUri by the host in the body
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment