3.1 changes

This commit is contained in:
Mikael Karlsson
2021-06-08 19:02:25 +10:00
parent c7f8cbe760
commit 18533494b2
318 changed files with 163882 additions and 137 deletions

View File

@@ -1338,7 +1338,23 @@ function Show-MSALDecodedToken {
}
elseif($prop.Name -in @("wids"))
{
$value = $tokenData.Payload."$($prop.Name)" -join "`n"
if(-not $script:aadRoles)
{
$script:aadRoles =(Invoke-GraphRequest -url "/directoryRoles?`$select=roleTemplateId,displayName" -ODataMetadata "minimal").value
}
$wids = @()
foreach($wid in $tokenData.Payload."$($prop.Name)")
{
$text = $wid
$role = ($script:aadRoles | where roleTemplateId -eq $wid)
if($role)
{
$text = ($text + " ($($role.displayName))")
}
$wids += $text
}
$value = $wids -join "`n"
#$value = $tokenData.Payload."$($prop.Name)" -join "`n"
}
elseif($prop.Name -in @("scp"))
{