ESG API - Token management

Hi ESG team,

One of our trial users is looking into the token management and has the following questions:

1) I notice that the access token is expired in 300 seconds. Is it possible to get a long-lived token?

2) Also, I tried to use the refresh token, but it gave me an error message “Failed to get access token 502 - {"error":"server_error"}”.

Can we please have your expert view?

Regards,

Erol



Best Answer

  • umer.nalla
    Answer ✓

    Hi @erol.komac

    The short-lived access token is part and parcel of our OAuth 2.0 authorization implementation- as recommended in the OAuth guidelines

    Please provide additional information on your usage of the Refresh token in order that we can investigate further.

    Are you using one of our examples or your own code? If your own code, when are you using the Refresh Token? Can you share your code snippet?



Answers

  • Thank you for this Umer. I have asked for feedback and shared the link of this question with the client.