You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ Python client library to quickly get started with the various [Watson APIs][wdc]
19
19
*[Getting credentials](#getting-credentials)
20
20
*[IAM](#iam)
21
21
*[Username and password](#username-and-password)
22
-
*[API key](#api-key)
23
22
*[Python version](#python-version)
24
23
*[Changes for v1.0](#changes-for-v10)
25
24
*[Changes for v2.0](#changes-for-v20)
@@ -83,7 +82,6 @@ Watson services are migrating to token-based Identity and Access Management (IAM
83
82
84
83
- With some service instances, you authenticate to the API by using **[IAM](#iam)**.
85
84
- In other instances, you authenticate by providing the **[username and password](#username-and-password)** for the service instance.
86
-
- Visual Recognition uses a form of [API key](#api-key) only with instances created before May 23, 2018. Newer instances of Visual Recognition use IAM.
87
85
88
86
**Note:** Authenticating with the X-Watson-Authorization-Token header is deprecated. The token continues to work with Cloud Foundry services, but is not supported for services that use Identity and Access Management (IAM) authentication. See [here](#iam) for details.
**Important**: This type of authentication works only with Visual Recognition instances created before May 23, 2018. Newer instances of Visual Recognition use [IAM](#iam).
152
-
153
-
```python
154
-
from watson_developer_cloud import VisualRecognitionV3
Copy file name to clipboardExpand all lines: watson_developer_cloud/watson_service.py
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@
33
33
AUTH_HEADER_DEPRECATION_MESSAGE='Authenticating with the X-Watson-Authorization-Token header is deprecated. The token continues to work with Cloud Foundry services, but is not supported for services that use Identity and Access Management (IAM) authentication.'
34
34
ICP_PREFIX='icp-'
35
35
APIKEY='apikey'
36
+
APIKEY_DEPRECATION_MESSAGE='Authenticating with apikey is deprecated. Move to using Identity and Access Management (IAM) authentication.'
0 commit comments