I'm using django-oauth-toolkit with djangorestframework where our partner user will register their application and get application credentials (client id and client secret) which then used to get access token that can be used further to get our server resources. Upto now I'm able to convert those form based application registration process and other apis through rest. But while I hit for access_token only access token with expire are coming as response. Refresh token also supposed to come along the access token but it's not. What I'm missing here...

Below is the sample api response for access_token enter image description here

And the oauth2 settings enter image description here

FYI: I'm using Client type as "Confidential" and Authorization grant type as "Client Credentials"

Findings: This may be helpful for others

There is no need for refresh token for grant type client credentials.

Further descriptions RFC doc ; grant type client credentials

0

There are 0 best solutions below