I've been trying to figure out how to implement an OAuth2 server so that I can handle authorization for my API. I have read through the documentation for bshaffer's oauth2-server-php
and tried following the step by step this guide
But when I run
curl -u testclient:testpass http://localhost/oauth2/token.php \
-d grant_type=client_credentials'
it simply spits out the contents of the file token.php
rather than actually return an access token.
I modified the path http://localhost/oauth2/token.php
to be the actual path to token.php
as I have it installed.
Has anyone else experienced this or know what could be causing it?