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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user