Skip to content

Commit 3de47a6

Browse files
committed
feat(Visual Recognition): Deprecated legacy apikey
1 parent 6215164 commit 3de47a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Scripts/Utilities/Credentials.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public Credentials(string username, string password, string url = null)
128128
/// If no URL is set then default to the non-IAM Visual Recognition endpoint.
129129
/// </summary>
130130
/// <param name="url">The service endpoint.</param>
131+
[Obsolete("Authentication using legacy apikey is deprecated. Please authenticate using TokenOptions.")]
131132
public Credentials(string apiKey, string url = null)
132133
{
133134
ApiKey = apiKey;
@@ -614,6 +615,7 @@ public class Credential
614615
[fsProperty("workspace_id")]
615616
public string WorkspaceId { get; set; }
616617
[fsProperty("api_key")]
618+
[Obsolete("Authentication using legacy apikey is deprecated. Please authenticate using TokenOptions.")]
617619
public string ApiKey { get; set; }
618620
[fsProperty("apikey")]
619621
public string IamApikey { get; set; }

0 commit comments

Comments
 (0)