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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -