I can't seem to get a refresh token back in my authorization request. I have included the offline_access scope as direction in these docs.
Here is my url:
I am trying to make it so that the user of my integration doesn't need to re-auth every hour (which seems to be the expiration length of the oauth token)
If anyone is still struggling, the refresh token is provided in the same dictionary as the access token.
So get the code using the authorisation url (making sure to add offline_access); your refresh token will then be in the response when you use that code to get the access token
Following this documentation https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps:
1. Add `offline_access` to scope in the request to `https://auth.atlassian.com/authorize`, it will not return the refresh token.
2. Continue to the second step in the documentation: getting cloudid. Use the code from callback as in the documentation, the response of this request includes the `refresh_token`.
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