Skip to content

Commit

Permalink
Merge pull request #343 from eliyamlevy/v2.8
Browse files Browse the repository at this point in the history
[v2.8] Update saml auth login endpoint to point toward dashboard endpoint
  • Loading branch information
eliyamlevy authored Sep 28, 2023
2 parents 7f52567 + 726ffd2 commit 2cc3438
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 2cc3438

Please sign in to comment.