bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Server setup help #933

Open dotyoka opened 6 years ago

dotyoka commented 6 years ago

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,

brytey2k commented 5 years ago

What do you get back