Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 068aadb

Browse files
authored
Merge pull request #418 from cloudant/update-default-iam-token-server
Update the default IAM token server URL
2 parents 0191122 + 90473f4 commit 068aadb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# UNRELEASED
22

33
- [NEW] Added option for client to authenticate with IAM token server.
4+
- [FIXED] Updated the default IAM token server URL.
45

56
# 2.10.2 (2018-12-19)
67

docs/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Cloud Platform.
100100
See `IBM Cloud Identity and Access Management <https://console.bluemix.net/docs/services/Cloudant/guides/iam.html#ibm-cloud-identity-and-access-management>`_
101101
for more information.
102102

103-
The production IAM token service at *https://iam.bluemix.net/identity/token* is used
103+
The production IAM token service at *https://iam.cloud.ibm.com/identity/token* is used
104104
by default. You can set an ``IAM_TOKEN_URL`` environment variable to override
105105
this.
106106

src/cloudant/_client_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def __init__(self, api_key, server_url, client_id=None, client_secret=None,
197197

198198
self._api_key = api_key
199199
self._token_url = os.environ.get(
200-
'IAM_TOKEN_URL', 'https://iam.bluemix.net/identity/token')
200+
'IAM_TOKEN_URL', 'https://iam.cloud.ibm.com/identity/token')
201201
self._token_auth = None
202202
if client_id and client_secret:
203203
self._token_auth = (client_id, client_secret)

0 commit comments

Comments
 (0)