The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Does the refresh token obtained through the OAuth 2.0 for Apps REST API expire?

Marco Roman
June 26, 2020

I'm following the OAuth 2.0 developer guide and I retrieved bearer tokens as described in section 2. Exchange authorization code for access token. I included the offline_access scope in the original authorization request to get a refresh token in the following response:

{
"access_token":"{access_token_value}",
"refresh_token":"{refresh_token_value}",
"scope":"read:jira-work offline_access",
"token_type":"Bearer",
"expires_in":3600
}

Just out of curiosity, does that "expires_in" value apply to both the access and refresh tokens? If not, when do refresh tokens expire?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
DPKJ
Community Champion
June 26, 2020

@Marco RomanAtlassian have followed standard RFC guidelines, and Refresh Token doesn't not expire as per these guidelines.

Here is a link to an answer submitted Atlassian Team member - https://community.atlassian.com/t5/Answers-Developer-Questions/Does-the-oauth-2-refresh-token-expire/qaq-p/574230

Marco Roman
June 29, 2020

Thank you for the rapid response! All clear now.

TAGS
AUG Leaders

Atlassian Community Events