New oAuth 2.0 authentication - return URL mismatch?

$admin = New-UDAuthorizationPolicy -Name 'Admin' -Endpoint {
    param($User)
    $out = $false

    foreach ($UserId in $User.Identities.Name) {
        if ($UserId -match "bosen29") {
            $out = $true
            LogAndConsole ($UserId + " success")
        }
        else {
            LogAndConsole ($UserId + " failed")
        }
    }
    return $out
}

This returns $true according to my logging function “LogAndConsole” (apologies for the non-verbalized function, 'twas a long time ago)

The auth policy is never taken into UD though.

This works like a charm in the regular AzureAD auth.

Smells like i need to register this as an issue on Github?