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.

also added marker for login origin
This commit is contained in:
Andreas Kupries
2025-09-03 10:04:56 +02:00
parent dfb252d226
commit e902c776eb

View File

@@ -443,9 +443,10 @@ func samlAuth(input *LoginInput, client *http.Client) (managementClient.Token, e
client.Timeout = 300 * time.Second
loginRequest := fmt.Sprintf("%s/dashboard/auth/login?requestId=%s&publicKey=%s&responseType=%s",
loginRequest := 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", loginRequest))
interrupt := make(chan os.Signal, 1)