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: doc/samples/AzureKeyVaultProviderExample.cs
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
/**
2
+
* TODO: This sample file should be deleted as the AKV Provider Ctor API is no longer supported with supported versions of AKV provider and MDS.
3
+
* Depends on: Delete documentation and sample reference in MS Docs first: https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-key-vault-example?view=sql-server-ver17#legacy-callback-implementation-design-example-with-v20
4
+
*
5
+
1
6
using System;
2
7
//<Snippet1>
3
8
using System.Collections.Generic;
@@ -23,7 +28,7 @@ public class AzureKeyVaultProviderExample
Copy file name to clipboardExpand all lines: doc/samples/AzureKeyVaultProviderLegacyExample_2_0.cs
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,21 @@
1
-
//<Snippet1>
1
+
/**
2
+
* TODO: This sample file should be deleted as the AKV Provider Ctor API is no longer supported with supported versions of AKV provider and MDS.
3
+
* Depends on: Delete documentation and sample reference in MS Docs first: https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-key-vault-example?view=sql-server-ver17#legacy-callback-implementation-design-example-with-v20
4
+
*
5
+
6
+
//< Snippet1>
2
7
using System;
3
8
using System.Collections.Generic;
9
+
using System.IdentityModel.Tokens.Jwt;
10
+
using System.Linq;
11
+
using System.Net.Http;
4
12
using System.Security.Cryptography;
5
-
usingAzure.Identity;
6
-
usingMicrosoft.Data.SqlClient;
13
+
using System.Threading;
14
+
using System.Threading.Tasks;
15
+
using Azure.Core;
7
16
using Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider;
17
+
using Newtonsoft.Json;
18
+
using Newtonsoft.Json.Linq;
8
19
9
20
namespace Microsoft.Data.SqlClient.Samples
10
21
{
@@ -366,3 +377,4 @@ public static async Task<string> AzureActiveDirectoryAuthenticationCallback(stri
0 commit comments