Open lgprobert opened 2 years ago
The full command should be like below , you need get your client id, client secret and username from the sqlite.
curl -u iuDsNl5kBL6dxaVWdIUtU53z:IFlpm1up7drF50wdSfceB29PSGX3geqQG683ReI8NzR0BZV7 -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=$nicksonthc -F password=valid -F scope=profile
The sqlite database store under folder instance
, you can download vscode extension sqlite to browse the row after you create your client via 127.0.0.1:5000
Hi I am getting similar error:
curl -u "${CLIENT_ID}:${CLIENT_SECRET}" -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=authorization_code -F code=RSv6j745Ri0DhBSvi2RQu5JKpIVvLm8SFd5ObjOZZSijohe0
{"error": "invalid_request", "error_description": "Invalid \"code\" in request."}%
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.
The other test is adding client_id and cilent_secret:
What is the correct curl command to get access token with refresh token?
Thanks