When I run curl -u testclient:testpass http://localhost/token.php -d 'grant_type=client_credentials' command I get the following output.
[root@localhost oauth2-server-php]# curl -u testclient:testpass http://localhost/token.php -d 'grant_type=client_credentials'
// include our OAuth2 Server object
require_once DIR.'/server.php';
// Handle a request for an OAuth2.0 Access Token and send the response to the client
$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();[root@localhost oauth2-server-php]#
Hello,
I am having an issue with the server setup. I followed all the instructions here http://bshaffer.github.io/oauth2-server-php-docs/cookbook/ and I am not getting the token back.
When I run curl -u testclient:testpass http://localhost/token.php -d 'grant_type=client_credentials' command I get the following output.
[root@localhost oauth2-server-php]# curl -u testclient:testpass http://localhost/token.php -d 'grant_type=client_credentials' // include our OAuth2 Server object require_once DIR.'/server.php';
// Handle a request for an OAuth2.0 Access Token and send the response to the client $server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();[root@localhost oauth2-server-php]#
Thanks,