Skip to content

Commit 4954086

Browse files
authored
Updated to new endpoint for IBM Cloud (#397)
* Updated to new endpoint for IBM Cloud Taken from https://cloud.ibm.com/apidocs/codeengine#get-kubeconfig The IAM is now pointing to long term one, and also updated the additional information in the POST * Update ibmclouduserkey.go Rollback to the original options.
1 parent 3b1cd65 commit 4954086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/detectors/ibmclouduserkey/ibmclouduserkey.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
4848

4949
if verify {
5050
payload := strings.NewReader(`apikey=` + resMatch + `&grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey`)
51-
req, err := http.NewRequestWithContext(ctx, "POST", "https://iam.ng.bluemix.net/identity/token", payload)
51+
req, err := http.NewRequestWithContext(ctx, "POST", "https://iam.cloud.ibm.com/identity/token", payload)
5252
if err != nil {
5353
continue
5454
}

0 commit comments

Comments
 (0)