Skip to content

Better message about exchange token #9

@jimmyshiau

Description

@jimmyshiau

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=...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions