Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit e26b005

Browse files
committed
Pass clientId for Keyvault used in managed Identity
1 parent 1d52ef4 commit e26b005

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/NuGet.Services.KeyVault/KeyVaultConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class KeyVaultConfiguration
1818
/// <summary>
1919
/// The constructor for keyvault configuration when using managed identities
2020
/// </summary>
21-
public KeyVaultConfiguration(string vaultName)
21+
public KeyVaultConfiguration(string vaultName, string clientId = null)
2222
{
2323
if (string.IsNullOrWhiteSpace(vaultName))
2424
{
@@ -27,6 +27,7 @@ public KeyVaultConfiguration(string vaultName)
2727

2828
VaultName = vaultName;
2929
UseManagedIdentity = true;
30+
ClientId = clientId;
3031
}
3132

3233
/// <summary>

0 commit comments

Comments
 (0)