Error while refreshing access token

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
rish
Posts: 17
Joined: Thu Sep 10, 2020 4:59 am

Error while refreshing access token

Post by rish » Mon Apr 04, 2022 6:57 am

Hey I'm using the following code block to fetch the refresh token for build https://spectrum.simprosuite.com
Screen Shot 2022-04-04 at 4.43.02 pm.png
Screen Shot 2022-04-04 at 4.43.02 pm.png (196.02 KiB) Viewed 3663 times
We integrated with this build and saved the first set of token (access and refresh) on 1/04/2022.

On 04/04/2022 we tried to fetch a new set of tokens but we were not able to do so because of invalid refresh token error.

As per api docs the refresh token should be valid for 14 days.


Not sure what is going on here. This code block works fine with other builds though.
Last edited by rish on Mon Apr 11, 2022 5:44 am, edited 2 times in total.
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Error while refreshing access token

Post by robbertcha » Mon Apr 04, 2022 10:59 pm

Hi,

I have already sent you a private message, please check it on your inbox, thank you
Robbert
API Developer | simPRO Software Group
ConsoleDev
Posts: 8
Joined: Tue Jul 20, 2021 9:18 am

Re: Error while refreshing access token

Post by ConsoleDev » Tue Apr 12, 2022 9:25 am

I am having issues with invalid access token too.

Can you advise on where to look to resolve?
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Error while refreshing access token

Post by robbertcha » Tue Apr 12, 2022 10:14 pm

Hi ConsoleDev,

You can try to grab a new access token and refresh token again by using the endpoint below:-

Reference: https://developer.simprogroup.com/apido ... t-workflow

Endpoint: https://{BUILD_NAME}.simprosuite.com/oauth2/token
Body Request:
{
"grant_type": "authorization_code",
"client_id": {YOUR_CLENT_ID},
"client_secret": "{YOUR_CLIENT_SECRET},
"code": {GET_IT_FROM_AUTHENTICATION_URL},
"state": ""
}

Please do let me know if you still have any issue, thank you
Robbert
API Developer | simPRO Software Group
Post Reply