oauth2-demo-php
oauth2-demo-php copied to clipboard
Client credentials At header
Hi,
I have attached Client credentials at request header... but its not providing access token
{"error":"invalid_client","error_description":"Client credentials were not found in the headers or body" }
my header: Array ( [Host] => MY HOST [User-Agent] => Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 [Accept] => / [Accept-Language] => en-US,en;q=0.5 [Accept-Encoding] => gzip, deflate [Content-Type] => application/x-www-form-urlencoded; charset=UTF-8 [client_id] => MY Client ID [client_secret] => [X-Requested-With] => XMLHttpRequest [Referer] => DOMAIN/login.php [Content-Length] => 68 [Cookie] => PHPSESSID=0boeea2s93ac4rfjq0qckcn937 [Connection] => keep-alive )