sailpoint-oss / powershell-sdk

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

Better error management as Get-AccessToken was silently failing #32

Closed yannick-beot-sp closed 1 year ago

yannick-beot-sp commented 1 year ago

If the client id or secret are wrong, we get a strange error about token being null without any debug (because the return was put before the write-debug). By throwing an error, we can see that:

{"error":"invalid_client","error_description":"Bad client credentials"}
CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Yannick Béot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

colin-mckibben-sp commented 1 year ago

@yannick-beot-sp We need you to submit another commit in order to trigger the CLA assistant again. Just make a change, like adding a space, and it should trigger the CLA again.