From 5eaa539719eb2e3d978767e9158fde807f8f7ca6 Mon Sep 17 00:00:00 2001 From: Andreas Kupries Date: Wed, 3 Sep 2025 10:17:54 +0200 Subject: [PATCH] added separate printout of request id for quick and easy access in case of problems. also added marker for login origin --- cmd/kubectl_token.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/kubectl_token.go b/cmd/kubectl_token.go index 4a828bae..5ac97ba4 100644 --- a/cmd/kubectl_token.go +++ b/cmd/kubectl_token.go @@ -452,9 +452,10 @@ func samlAuth(client *http.Client, input *LoginInput) (managementClient.Token, e deleteReq.Header.Set("content-type", "application/json") deleteReq.Header.Set("accept", "application/json") - loginURL := fmt.Sprintf("%s/dashboard/auth/login?requestId=%s&publicKey=%s&responseType=%s", + loginURL := fmt.Sprintf("%s/dashboard/auth/login?cli=true&requestId=%s&publicKey=%s&responseType=%s", input.server, id, encodedKey, responseType) + customPrint(fmt.Sprintf("\nLogin Request Id: %s\n", id)) customPrint(fmt.Sprintf("\nLogin to Rancher Server at %s \n", loginURL)) interrupt := make(chan os.Signal, 1)