Skip to content

Refresh Token #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Fizmath opened this issue Feb 24, 2020 · 2 comments
Closed

Refresh Token #64

Fizmath opened this issue Feb 24, 2020 · 2 comments

Comments

@Fizmath
Copy link

Fizmath commented Feb 24, 2020

Hello

I followed the steps : after
curl -u "xxxx...":"xxxx..." -XPOST http://0.0.0.0:8080/oauth/token -F grant_type=password -F username="me" -F password=valid -F scope=profile

i got the response in Ubuntu terminal :

{"access_token": "xxxx..", "expires_in": 864000, \ "refresh_token": "xxxx..", "scope": "profile", "token_type": "Bearer"}

how to curl the refresh_token ? should we include something here ? :

include

I wish there would be a complete example

Thanks

@Fizmath Fizmath changed the title Refresh token Refresh Token Feb 24, 2020
@lepture
Copy link
Member

lepture commented Feb 9, 2021

You need to add refresh_token grant type here. Then curl with -F grant_type=refresh_token

@lepture lepture closed this as completed Feb 9, 2021
@ZTAP0011
Copy link

ZTAP0011 commented Feb 9, 2021

Hello @lepture , I have one query in the above discussion first time when I make a request to -XPOST http://0.0.0.0:8080/oauth/token by passing the oauth code, at that time I only get access_token in response but not the request token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants