Skip to content

Commit a61c2af

Browse files
committed
refactor(iam): Use proper default IAM URL
1 parent 789f473 commit a61c2af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ When authenticating with IAM, you have the option of passing in:
180180
// in the constructor, letting the SDK manage the IAM token
181181
IamOptions options = new IamOptions.Builder()
182182
.apiKey("<iam_api_key>")
183-
.url("<iam_url>") // optional - the default value is https://iam.ng.bluemix.net/identity/token
183+
.url("<iam_url>") // optional - the default value is https://iam.bluemix.net/identity/token
184184
.build();
185185
Discovery service = new Discovery("2017-11-07", options);
186186
```

core/src/main/java/com/ibm/watson/developer_cloud/service/security/IamTokenManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class IamTokenManager {
3434
private IamToken tokenData;
3535

3636
private static final String DEFAULT_AUTHORIZATION = "Basic Yng6Yng=";
37-
private static final String DEFAULT_IAM_URL = "https://iam.ng.bluemix.net/identity/token";
37+
private static final String DEFAULT_IAM_URL = "https://iam.bluemix.net/identity/token";
3838
private static final String GRANT_TYPE = "grant_type";
3939
private static final String REQUEST_GRANT_TYPE = "urn:ibm:params:oauth:grant-type:apikey";
4040
private static final String REFRESH_GRANT_TYPE = "refresh_token";

0 commit comments

Comments
 (0)