Skip to content

Commit

Permalink
revert host
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Chen committed Dec 18, 2023
1 parent 102243c commit 34eaae8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/util/kubeadminkubeconfig/kubetoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"net/http"
"net/url"
"strings"
"time"
)

Expand Down Expand Up @@ -47,9 +48,12 @@ func getTokenURLFromConsoleURL(consoleURL string) (*url.URL, error) {
return nil, err
}

tokenURL.Host = "20.168.212.108"
tokenURL.Host = strings.Replace(tokenURL.Host, "console-openshift-console", "oauth-openshift", 1)
// tokenURL.Host = "20.168.212.108"
tokenURL.Path = "/oauth/authorize"

fmt.Println(tokenURL.Host)

q := tokenURL.Query()
q.Set("response_type", "token")
q.Set("client_id", "openshift-challenging-client")
Expand Down

0 comments on commit 34eaae8

Please sign in to comment.