Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes
Answer accepted
DPK J Community Leader Jun 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

Thank you for the rapid response! All clear now.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,706 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you