Skip to content

Commit

Permalink
Update saml auth login endpoint to dashboard endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
eliyamlevy committed Sep 28, 2023
1 parent 7f52567 commit 726ffd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubectl_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 726ffd2

Please sign in to comment.