When the Get-TenantDomains function in AccessToken_Utils.ps1 only returns a single domain a string value is returned for the assigned $domains variable.
This in turn will ruin all subsequent checks as the the returned $domains is an incorrect concatenated string, instead of being an Array. This will cause AADInternals to show false information.
Applied Fix: Ensure $domains is always a StringArray
When the
Get-TenantDomains
function inAccessToken_Utils.ps1
only returns a single domain a string value is returned for the assigned$domains
variable.This could cause a wrong concatenation in the following code block
This in turn will ruin all subsequent checks as the the returned
$domains
is an incorrect concatenated string, instead of being an Array. This will cause AADInternals to show false information.Applied Fix: Ensure
$domains
is always a StringArray