•   over 5 years ago

Error getting access token

Hi, I

I am error in getting the access token.

I hit the url "https://genomelink.io/oauth/authorize?redirect_uri=http://localhost:3000/callback&client_id=XXX&scope=report:openness&response_type=code" to get the callback function to convert the 'code' to an 'access_token'

Please find the following request
METHOD - POST
URL - "https://genomelink.io/oauth/token"
HEADER - 'Content-Type':'application/x-www-form-urlencoded'
BODY -
{
grant_type: 'authorization_code',
code: 'xaPgw0ygME7f7zlDuRptoNsQozJJqL',
client_id: 'XXX',
client_secret: 'YYY',
redirect_uri: 'http://localhost:3000/callback'
}

The response I am getting is {"error": "unsupported_grant_type"}

Any help will be appreciated. :)

Comments are closed.