Hey I'm using the following code block to fetch the refresh token for build https://spectrum.simprosuite.com
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.
Error while refreshing access token
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.
Error while refreshing access token
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
Hi,
I have already sent you a private message, please check it on your inbox, thank you
I have already sent you a private message, please check it on your inbox, thank you
Robbert
API Developer | simPRO Software Group
API Developer | simPRO Software Group
-
ConsoleDev
- Posts: 8
- Joined: Tue Jul 20, 2021 9:18 am
Re: Error while refreshing access token
I am having issues with invalid access token too.
Can you advise on where to look to resolve?
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
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
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
API Developer | simPRO Software Group
DEVELOPER CENTER