Skip to content

Commit

Permalink
Merge pull request #342 from eliyamlevy/v2.7
Browse files Browse the repository at this point in the history
[v2.7] Update saml auth login endpoint to point toward dashboard endpoint
  • Loading branch information
eliyamlevy committed Sep 28, 2023
2 parents d8f002e + 6b577d1 commit ca506bc
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 ca506bc

Please sign in to comment.