authlib / authlib/example-oauth2-server
What is the full curl command to get access token with request token?
- Dominant language
- Python
- Stars
- 705
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
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.
```sh
$ 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:
```sh
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.