Reputation: 43
So, i'm following this tutorial to apply oauth2 in my django project
I handled to get an client_id, secret, code_verifier and code as it is described in the tutorial but then the tutorial asks the following:
Now that you have the user authorization is time to get an access token:
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" "http://127.0.0.1:8000/o/token/" -d "client_id=${ID}" -d "client_secret=${SECRET}" -d "code=${CODE}" -d "code_verifier=${CODE_VERIFIER}" -d "redirect_uri=http://127.0.0.1:8000/noexist/callback" -d "grant_type=authorization_code"
I tried everything, checked the credentials 100 of times but the terminal output is always: {"error": "invalid_client"}
I can't see what is wrong
Upvotes: 0
Views: 131