Hi,
The sample in this repo is pretty straightforward and clear. Thanks.
One thing is not mentioned in tutorial is getting new access_token with refresh_token as way of renewing an access_token.
I tried below command and the other which had auth tuple and both failed.
$ curl -XPOST http://127.0.0.1:8000/oauth/token -F grant_type=refresh_token -F refresh_token=NogJYgBFjH3NmTBDHdDYTCUQBQaMXBFZThdjaHtjraEuT9HM
{"error": "invalid_client"}
The other test is adding client_id and cilent_secret:
curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:8000/oauth/token -F grant_type=refresh_token -F scope=profile -F refresh_token=${refresh_token}
{"error": "unauthorized_client"}
What is the correct curl command to get access token with refresh token?
Thanks
Hi,
The sample in this repo is pretty straightforward and clear. Thanks.
One thing is not mentioned in tutorial is getting new access_token with refresh_token as way of renewing an access_token.
I tried below command and the other which had auth tuple and both failed.
$ curl -XPOST http://127.0.0.1:8000/oauth/token -F grant_type=refresh_token -F refresh_token=NogJYgBFjH3NmTBDHdDYTCUQBQaMXBFZThdjaHtjraEuT9HM {"error": "invalid_client"}The other test is adding client_id and cilent_secret:
What is the correct curl command to get access token with refresh token?
Thanks