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

Add logs for tests purpose

parent 0ed836c1
No related branches found
No related tags found
No related merge requests found
Pipeline #5369 passed
...@@ -38,6 +38,18 @@ func main() { ...@@ -38,6 +38,18 @@ func main() {
query := r.URL.Query() query := r.URL.Query()
fmt.Println(query) fmt.Println(query)
fmt.Println("---------------------------")
fmt.Println("RequestURI", r.RequestURI)
fmt.Println("RemoteAddr ", r.RemoteAddr)
fmt.Println("Trailer ", r.Trailer)
fmt.Println("Host ", r.Host )
fmt.Println("Header", r.Header)
fmt.Println("referer", r.Header["referer"])
fmt.Println("URL Hostname()", r.URL.Hostname())
fmt.Println("URL RequestURI()", r.URL.RequestURI())
fmt.Println("URL String()", r.URL.String())
fmt.Println("---------------------------")
clientId := query.Get("client_id") clientId := query.Get("client_id")
state := query.Get("state") state := query.Get("state")
redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/" redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/"
...@@ -59,9 +71,7 @@ func main() { ...@@ -59,9 +71,7 @@ func main() {
// Define the host // Define the host
host := "https://" + r.Host host := "https://" + r.Host
fmt.Println("host", r.Host) fmt.Println("host", r.Host)
fmt.Println("referer", r.Header["referer"])
fmt.Println("URL Host", r.URL.Host)
fmt.Println("URL Path", r.URL.Path)
// 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