I am trying to change the idle timeout from the default 25 minutes. I have tried two different ways. One has been to add IdleTimeout to the new-uddashboard. When I do this, I have found that the cookie is still for only 25 minutes and my grids no longer load. I get errors such as this when this happens:
[Warn] ComponentController Endpoint fb122b75-9c51-4e69-935f-2a98e894112c not found.
This is consistent with every single grid that I have.
So, I thought I would try it differently and use the Grant-UDJsonWebToken. I set the date with this:
$date = [DateTime]::UtcNow.AddMinutes(40)
and then the token with this:
$token = Grant-UDJsonWebToken -Identity $Credentials.UserName -Expiry $date -Role $Role
and finally do UDAuthResult:
New-UDAuthenticationResult -Success -UserName $Credentials.UserName -Token $token
Trying this method, my cookie is still only valid for 25 minutes.
Am I doing something wrong with this?