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: 

How to get an access token and a refresh token using HttpClient?

RichardGriffiths89
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2019

Hi,

Hope someone can help me with this one. I'm trying to pull down a list of all repositories, i understand I need an access token to retrieve private repos. I have managed to do this using implicit grant:

https://bitbucket.org/site/oauth2/authorize?client_id={key}&response_type=token

But this will expire after two hours. So therefore I need to get an refresh token which and I can't get this with the implicit grant.

Any idea how i can get the access token along with the refresh token using httpclient, so I can then get a new token when the old one expires? 

 

Thanks, 

Richard

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events