Skip to content

Commit 43d2f49

Browse files
committed
Only write service principal secret to context in .NET Core
1 parent fc3da19 commit 43d2f49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Authentication.Test/Cmdlets/ConnectAccount.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ public override void ExecuteCmdlet()
9494
Account.SetProperty(AzureAccount.Property.Tenants, new[] { TenantId });
9595
}
9696

97+
#if NETSTANDARD
9798
if (!string.IsNullOrEmpty(Password))
9899
{
99100
Account.SetProperty(AzureAccount.Property.ServicePrincipalSecret, Password);
100101
}
102+
#endif
101103

102104
if (AzureRmProfileProvider.Instance.Profile == null)
103105
{

0 commit comments

Comments
 (0)