I have set up tyk api with oauth2.0 authorization code grant type. I can receive authorize-client, but using that code when i try to excahnge it for token i get following error {
“error”: “invalid_request”,
“error_description”: “The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.”
}
The curl request is as below (Removed some information).
curl --location --request POST ‘/oauth/token/’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header 'Authorization: ’
–data-urlencode ‘grant_type=authorization_code’
–data-urlencode 'client_id=
–data-urlencode ‘code=E-keLbBhQU2abAs3-iKeBw’
–data-urlencode ‘redirect_uri= https:///open-banking-tpp-service/client/notify’
–data-urlencode ‘scope=null’
–data-urlencode ‘state=null’
Can someone let me know what is wrong?
Regards,
Anand