Refresh a token generated after using grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Hi,
I'm developing a custom client API in Python, and after generating a jwt and making a POST request with:
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
&client_id={client_id}
&client_secret={client_secret}
&assertion={jwt}
I get the next reponse:
{"access_token":"G2z9sXeSeUQK0cBdYPWoTgyv9L27DF1b","expires_in":3912,"restricted_to":[],"token_type":"bearer"}
I don't see a refres_token here and I don't know how can a keep the token alive after it expires. Do i have another option than asking a new access_token?
Thank you very much in advance!
-
With our JWT authentication model, there is no refresh token. To create a new access token using JWT authentication, you would use the same credentials that you used to generate the first access token. Note that the JWT assertion would have a different value since you would have to update the exp parameter.
With our OAuth2 authentication model, you would use the refresh token to get a new access token.
Please sign in to leave a comment.
Comments
1 comment