Skip to content

Commit a8bd39e

Browse files
authored
Merge pull request #421 from watson-developer-cloud/4993-deprecate-cf-tokens
Deprecate CF tokens
2 parents acc8d90 + 081db74 commit a8bd39e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ private void OnMessage(object resp, Dictionary<string, object> customData)
315315
```
316316

317317
## Authentication Tokens
318+
319+
**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. For details see [Authenticating with IAM tokens](https://console.bluemix.net/docs/services/watson/getting-started-iam.html#iam) or the [README](#IAM) in the IBM Watson SDK you use.**
320+
318321
You use tokens to write applications that make authenticated requests to IBM Watson™ services without embedding service credentials in every call.
319322

320323
You can write an authentication proxy in IBM Cloud that obtains and returns a token to your client application, which can then use the token to call the service directly. This proxy eliminates the need to channel all service requests through an intermediate server-side application, which is otherwise necessary to avoid exposing your service credentials from your client application.

Scripts/Utilities/Utility.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ public static string GetExtension(string mimeType)
11781178
/// <returns>True if the call succeeds.</returns>
11791179
public static bool GetWatsonToken(OnGetWatsonToken callback, string serviceEndpoint, string username, string password, string tokenName = "")
11801180
{
1181+
Log.Warning("Utility.GetWatsonToken()", "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. For details see [Authenticating with IAM tokens](https://console.bluemix.net/docs/services/watson/getting-started-iam.html#iam) or the README in the IBM Watson SDK you use.");
11811182
if (callback == null)
11821183
throw new ArgumentNullException("callback");
11831184
if (string.IsNullOrEmpty(serviceEndpoint))

0 commit comments

Comments
 (0)