-
Notifications
You must be signed in to change notification settings - Fork 3
Better message about exchange token #9
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
When @cor3000 tring to exchange token, he put param in query string
https://quire.io/oauth/token?grant_type=client_credentials&client_id=...&client_secret=...
and we return
{"error":"unsupported_grant_type","error_description":"The supported grant types are 'authorization_code', 'refresh_token'."}
It was caused by we need to put params into post body
curl -d "grant_type=client_credentials&client_id=...&client_secret=.." -X POST https://quire.io/oauth/token
He think it is a confusing error message
a helpful error message might be:" query parameters not supported, use request body"
for Asana, they just return error page
https://app.asana.com/-/oauth_token?grant_type=client_credentials&client_id=...&client_secret=...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers