IBM / keyprotect-go-client

Go SDK for interacting with the IBM Cloud KeyProtect service.
Apache License 2.0
6 stars 29 forks source link

iam.cloud.ibm.com endpoint is hardcoded #69

Closed kavya498 closed 2 years ago

kavya498 commented 2 years ago

Endpoint should not be hardcoded here

Request to provide ability to override iam endpoint

mrodden commented 2 years ago

You are referring to the default URL in your link.

The correct way to provide your own URL for IAM is to provide it when building your own IAMTokenSource. The URL can be set during the construction of said struct as TokenURL

https://github.com/IBM/keyprotect-go-client/blob/master/iam/iam.go#L99