The grant type was not specified in the request
-
Hello! I was able to successfully create an auth code and I’m sending a POST request via PHP Curl to create an Access Token and I keep getting “The grant type was not specified in the request” and it’s via HTTPS and I echoed out the full URL and sure enough I am passing the grant_type and code and even my client id and secret as well as the basic header auth with the base64 client and secret. Only other thing to note, which I’m not sure if it really is an issue but I’m doing a XHR call on my client on SiteA.com pointing to SiteB.com/getAccessToken.php which has the curl code that calls SiteA.com
I was having some PHP Curl issues calling to my own server and it was taking me long while to figure out so in an effort to at the very least do a work-around and fix that later I ping-ponged the request to another server, it’s a live site, that will return the curl response and that resolved my CURL error but now I’m getting that grant_type not specified error
- The topic ‘The grant type was not specified in the request’ is closed to new replies.