IIS Failure - HTTP Error 502.5 - Process Failure

Yes, I’ve got no issues with authentication.
Hopefully this will help:

  1. Make sure you have forwardWindowsAuthToken=“true” in your web.config file
  2. In IIS if thats how you’re hosting, enable Windows Authentication, Disable Anonymous Authentication
  3. In your dashboard code, try something like this:

$AuthorizationPolicy = @()
$AuthorizationPolicy += New-UDAuthorizationPolicy -Name “Admin” -Endpoint {
param($User)
$grantedaccess = $false
if($user.Identity.Groups -contains “S-1-5-21-SIDofGroup”){ # (using the SID to protect against name changes)
$grantedaccess = $true
}elseif($user.Identity.Name -in @(“Domain\Username1”,“Domain\Username2”)){
$grantedaccess = $true
}
return $grantedaccess
}
$AuthMethod = New-UDAuthenticationMethod -windows
$LoginPage = New-UDLoginPage -AuthenticationMethod $AuthMethod -AuthorizationPolicy $AuthorizationPolicy -PassThru
New-UDDashboard -LoginPage $LoginPage

If you still struggle, take the above auth block, strip out the contents and put
$user | convertto-json | out-file "outlocation\outfile.txt"
Take a look to make sure you’re getting the full user object output.