Родитель
9a646aa0e4
Коммит
aec290bcff
|
@ -38,6 +38,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement
|
||||||
/// SqlAuthenticationMethod.ActiveDirectoryInteractive.ToString() cannot be used
|
/// SqlAuthenticationMethod.ActiveDirectoryInteractive.ToString() cannot be used
|
||||||
/// because it may not be available in the .NET framework version that we are running in
|
/// because it may not be available in the .NET framework version that we are running in
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
internal static readonly string ActiveDirectoryDefaultStr = "ActiveDirectoryDefault";
|
||||||
internal static readonly string ActiveDirectoryInteractiveStr = "ActiveDirectoryInteractive";
|
internal static readonly string ActiveDirectoryInteractiveStr = "ActiveDirectoryInteractive";
|
||||||
internal static readonly string ActiveDirectoryServicePrincipal = "ActiveDirectoryServicePrincipal";
|
internal static readonly string ActiveDirectoryServicePrincipal = "ActiveDirectoryServicePrincipal";
|
||||||
internal static readonly string ActiveDirectoryDeviceCodeFlow = "ActiveDirectoryDeviceCodeFlow";
|
internal static readonly string ActiveDirectoryDeviceCodeFlow = "ActiveDirectoryDeviceCodeFlow";
|
||||||
|
|
|
@ -161,7 +161,8 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement
|
||||||
if (connectionString.ContainsKey(ShardMapUtils.Authentication))
|
if (connectionString.ContainsKey(ShardMapUtils.Authentication))
|
||||||
{
|
{
|
||||||
string authentication = connectionString[ShardMapUtils.Authentication].ToString();
|
string authentication = connectionString[ShardMapUtils.Authentication].ToString();
|
||||||
if (authentication.Equals(ShardMapUtils.ActiveDirectoryIntegratedStr, StringComparison.OrdinalIgnoreCase)
|
if ( authentication.Equals(ShardMapUtils.ActiveDirectoryDefaultStr, StringComparison.OrdinalIgnoreCase)
|
||||||
|
|| authentication.Equals(ShardMapUtils.ActiveDirectoryIntegratedStr, StringComparison.OrdinalIgnoreCase)
|
||||||
|| authentication.Equals(ShardMapUtils.ActiveDirectoryInteractiveStr, StringComparison.OrdinalIgnoreCase)
|
|| authentication.Equals(ShardMapUtils.ActiveDirectoryInteractiveStr, StringComparison.OrdinalIgnoreCase)
|
||||||
|| authentication.Equals(ShardMapUtils.ActiveDirectoryManagedIdentity, StringComparison.OrdinalIgnoreCase)
|
|| authentication.Equals(ShardMapUtils.ActiveDirectoryManagedIdentity, StringComparison.OrdinalIgnoreCase)
|
||||||
|| authentication.Equals(ShardMapUtils.ActiveDirectoryServicePrincipal, StringComparison.OrdinalIgnoreCase)
|
|| authentication.Equals(ShardMapUtils.ActiveDirectoryServicePrincipal, StringComparison.OrdinalIgnoreCase)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче