oauth 2.0 - Trying to use `oauth2-server-php` but token request simply prints contents of `token.php` -
i've been trying figure out how implement oauth2 server can handle authorization api. have read through documentation bshaffer's oauth2-server-php , tried following step step guide
but when run
curl -u testclient:testpass http://localhost/oauth2/token.php \ -d grant_type=client_credentials' it spits out contents of file token.php rather return access token.
i modified path http://localhost/oauth2/token.php actual path token.php have installed.
has else experienced or know causing it?
looks short_open_tag issue. token.php file start short tag? if so, change long 1 (<?php) or enable short tags in php.ini.
Comments
Post a Comment