Hi I have a Dashboard where I use $PSUAppToken to get a token for use in the API.
It appears -GrantAppToken is no longer a thing?
About - PowerShell Universal
If I remove -GrantAppToken it “works” the first time, but the token that gets generated only has a lifetime of 24 hours, after the 24 hours the token is expired, and a new one is not generated. So from then on it does not work.
Product: PowerShell Universal
Version: 4.0.8
1 Like
Hi @tholabrk
could you solve this issue? I think I’ve pretty much the same:
- users are logged in PSU, whether by Windows or OIDC
- based on their role (e.g. Administrator) they have access to an App
- I have an API endpoint defined also assigned to the same role
- the app shall request data from the API endpoint using the user’s context as authentication
Thanks,
Matthias
Sadly, it’s been a while so I have no idea, sorry.
From looking at our git history I see no relevant changes, so my only guess is that an update fixed it. Maybe 4.0.10?
Fixed an issue where app tokens set to never expire would not authenticate properly (#2598)
1 Like