Django-oauth-toolkit: refresh token

Created on 29 Nov 2016  Â·  6Comments  Â·  Source: jazzband/django-oauth-toolkit

what is the inbuilt url for genrating acces_token from refresh token in this package.

how can i generate a fresh access token from my old refresh token is there any url available or i have to make it custom.

question

All 6 comments

See #351

To clarify, a request to the generic tokens endpoint like (following the example):

curl -X POST -d "grant_type=refresh_token&client_id=<client_id>&refresh_token=<refresh_token>"  http://localhost:8000/o/token/

should return a new access token for apps created the public client type. For private client apps, the client id/secret will likely need to be provided in the basic auth header.

this command shows invalid client error...anything else

I had generated new token and tried, it works.This may be using old token
instead of generating new one

On Sun, Apr 8, 2018 at 11:36 AM, Pharrell notifications@github.com wrote:

@joelranjithjebanesan7 https://github.com/joelranjithjebanesan7 yes,
same here. {"error": "invalid_grant"}%

Any clues to solve this problem?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jazzband/django-oauth-toolkit/issues/432#issuecomment-379523437,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab5KRMHgcG0yRq2ZjKh8ZIlzLUoM3gEMks5tmajngaJpZM4K-5g7
.

@phillbaker @pawanvirsingh I am getting
{
"error": "invalid_grant"
}
in response, what's wrong with my request.

@sachin87 check to verify that you set your details correctly. For instance in my case my client_id was wrong.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashiksl picture ashiksl  Â·  3Comments

lokilak picture lokilak  Â·  4Comments

lucasdavid picture lucasdavid  Â·  3Comments

bryanveloso picture bryanveloso  Â·  6Comments

ericburns picture ericburns  Â·  3Comments