oauth2-server-php icon indicating copy to clipboard operation
oauth2-server-php copied to clipboard

Server setup help

Open dotyoka opened this issue 6 years ago • 1 comments

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,

dotyoka avatar May 23 '18 06:05 dotyoka

What do you get back

brytey2k avatar Jan 16 '19 14:01 brytey2k