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
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingAuthenticationFactory','ExoInitializationError',"Factory with name $authenticationFactory not found"))
75
+
}
76
+
}
77
+
else
78
+
{
79
+
$f=$authenticationFactory
80
+
}
81
+
if([string]::IsNullOrEmpty($tenantId) )
82
+
{
83
+
$tenantId=$f.tenantId
84
+
}
85
+
if([string]::IsNullOrEmpty($TenantId))
86
+
{
87
+
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingTenantId','ExoInitializationError','TenantId is not specified and cannot be determined automatically - please specify TenantId parameter'))
#explicitly authenticate when establishing connection to catch any authentication problems early
84
104
Get-ExoToken-Connection $Connection|Out-Null
85
-
if([string]::IsNullOrEmpty($TenantId))
86
-
{
87
-
$TenantId=$AuthenticationFactory.TenantId
88
-
}
89
-
if([string]::IsNullOrEmpty($TenantId))
90
-
{
91
-
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingTenantId','ExoInitializationError','TenantId is not specified and cannot be determined automatically - please specify TenantId parameter'))
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingAuthenticationFactory','ExoInitializationError',"Factory with name $authenticationFactory not found"))
467
+
}
468
+
}
469
+
else
470
+
{
471
+
$f=$authenticationFactory
472
+
}
473
+
if([string]::IsNullOrEmpty($tenantId) )
474
+
{
475
+
$tenantId=$f.tenantId
476
+
}
477
+
if([string]::IsNullOrEmpty($TenantId))
478
+
{
479
+
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingTenantId','ExoInitializationError','TenantId is not specified and cannot be determined automatically - please specify TenantId parameter'))
#explicitly authenticate when establishing connection to catch any authentication problems early
476
496
Get-ExoToken-Connection $Connection|Out-Null
477
-
if([string]::IsNullOrEmpty($TenantId))
478
-
{
479
-
$TenantId=$AuthenticationFactory.TenantId
480
-
}
481
-
if([string]::IsNullOrEmpty($TenantId))
482
-
{
483
-
throw (new-object ExoHelper.ExoException([System.Net.HttpStatusCode]::BadRequest,'ExoMissingTenantId','ExoInitializationError','TenantId is not specified and cannot be determined automatically - please specify TenantId parameter'))
0 commit comments