From 726ffd2a7a6fc082403fc81cf412ca1ce06f0ec3 Mon Sep 17 00:00:00 2001 From: Eliyam Levy Date: Thu, 28 Sep 2023 11:52:12 -0400 Subject: [PATCH] Update saml auth login endpoint to dashboard endpoint --- cmd/kubectl_token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubectl_token.go b/cmd/kubectl_token.go index e9b4f241..2c297885 100644 --- a/cmd/kubectl_token.go +++ b/cmd/kubectl_token.go @@ -415,7 +415,7 @@ func samlAuth(input *LoginInput, tlsConfig *tls.Config) (managementClient.Token, client := &http.Client{Transport: tr, Timeout: 300 * time.Second} - loginRequest := fmt.Sprintf("%s/login?requestId=%s&publicKey=%s&responseType=%s", + loginRequest := fmt.Sprintf("%s/dashboard/auth/login?requestId=%s&publicKey=%s&responseType=%s", input.server, id, encodedKey, responseType) customPrint(fmt.Sprintf("\nLogin to Rancher Server at %s \n", loginRequest))