Refresh Token API for SuiteCRM

Hi guys,

I am trying to get a access token for the SuiteCRM v8 APIs access via the refresh token, but the documentation does not have any info around the same. I also searched for various forums to vain and did not find anything on this.

Is there a way to get the access token (after expiry) from the refresh token for SuiteCRM? Or a way to increase the expiry of the access token?

I have tried to set the ’ grant_type’ parameter to ‘refresh_token’ for the access token API, but it throws an error. Really appreciate the help on the same.
Thanks in advance.

I’m seeing the same thing in 7.10.7; the OAuth server by the PHP League supports a refresh_token grant type, but the OAuth API in Suite responds negatively to refresh_token requests. There appears to be no code in place to make it work, which represents a gaping hole in the implementation.

Same here, no code in place to refresh token… hoping the next release fixes it.

Note that there are substantial improvements in the v8 API in SuiteCRM 7.10.10, make sure you check that one out.

Will do, thank you for the info. In the meantime I’ll keep using 7.10.9 while keeping https://github.com/salesagility/SuiteCRM/projects/2 under sight so that I can eventually upgrade.

Any updates on the topic? I am using v8 API with grant_type = refresh_token but getting error:


{
    "error": "unsupported_grant_type",
    "message": "The authorization grant type is not supported by the authorization server.",
    "hint": "Check the `grant_type` parameter"
}

Same problem. It seems that the RefreshGrant type is not enabled.

Does anyone have found a solution?

#bump