Skip to content

Commit c6a4c40

Browse files
committed
feat(cf-token): Added deprecation message when using Watson Token
1 parent c35a73f commit c6a4c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)