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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events