We are trying to connect to the PSU server after switching from Windows auth to OIDC but are running into the following error when trying to run Connect-PSUServer.
" [Response could not be deserialized to JSON"
We’ve tried changing Connect-PSUServer to use the app token but still have the same error. Previously it was set to “-UseDefaultCredentials” with windows auth and working.
connect-psuServer -ComputerName https://localhost -AppToken $env:PSU_TOKEN
Connect-PSUServer: Call failed. The SSL connection could not be established, see inner exception. GET https://localhost/api/v1/accessible
connect-psuServer -ComputerName http://localhost:5000 -AppToken $env:PSU_TOKEN
Connect-PSUServer: Response could not be deserialized to JSON: GET http://localhost:5000/api/v1/accessible
connect-psuServer -ComputerName http://localhost:5000 -AppToken $env:PSU_TOKEN -Debug
Connect-PSUServer: Response could not be deserialized to JSON: GET http://localhost:5000/api/v1/accessible
connect-psuServer -ComputerName http://localhost:5000 -AppToken $env:PSU_TOKEN -Verbose
Connect-PSUServer: Response could not be deserialized to JSON: GET http://localhost:5000/api/v1/accessible
I know we have integration tests to validate this behavior works v5 as of 5.5.5 but I wouldn’t be surprised this is still an issue in v4. I will open an issue.
I’m not sure and will have to try on v4. It could be an order of operations thing within PSU that is causing the problem and might not work with a bug fix.