Product: PowerShell Universal
Version: 1.5.15
Hello,
I need redirect from API Endpoint, is it possible to do redirect from API endpoint?
New-PSUApiResponse doesn’t have Header parameter to set Location: $url
I tried to do redirect using: Invoke-UDRedirect https://docs.ironmansoftware.com
Created dashboard with code:
New-UDDashboard -Title "Hello, World!" -Content {
Get-Variable | ConvertTo-Json -depth 2 | Out-File "C:\psua\poc\UniversalAutomation\Data\Dashboard.json"
New-UDTypography -Text "Hello $User"
Invoke-UDRedirect https://docs.ironmansoftware.com
}
It’s not redirecting even like this above
Code work flow:
- User authenticates using kerberos authentication
- API Endpoint query user AD properties
- Based on property value user redirected to one of defined Locations