1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00

added separate printout of request id for quick and easy access in case of problems. (#476)

added marker for login origin
This commit is contained in:
Andreas Kupries
2025-09-04 15:48:41 +02:00
committed by GitHub
parent d638bc3191
commit 792397c052

View File

@@ -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)