sailpoint-oss / powershell-sdk

PowerShell Module for accessing SailPoint IdentityNow APIs
https://developer.sailpoint.com/
MIT License
21 stars 15 forks source link

Error: JWT is Required #84

Closed justinhaines closed 5 months ago

justinhaines commented 5 months ago

I recently have been getting the following error on all of the SDK cmdlets that I run:

PS C:\Users\justin.haines> Get-AccessProfiles Invoke-WebRequest: C:\Users\justin.haines\OneDrive - Optiv Security Inc\Documents\PowerShell\Modules\PSSailpoint\1.3.0\v3\src\PSSailpoint\Private\ApiClient.ps1:188 Line | 188 | $Response = Invoke-WebRequest -Uri $UriBuilder.Uri ` | ~~~~~~~~ | { "error": "JWT is required" }

tyler-mairose-sp commented 5 months ago

Hey @justinhaines,

Has anything with your configuration changed? This leads me to think something is off with the baseurl, cliendId or clientSecret.

Would you mind sharing the output of the same Get-AccessProfiles but include the -Verbose switch. Get-AccessProfiles -Verbose

Make sure you exclude any sensitive data that is output.

justinhaines commented 5 months ago

I didn't realize I had to run sail idk init config --env to set the environment. Thanks!