Restler3 RC4: oAuth doesn't work

孤者浪人 提交于 2019-12-11 18:05:03

问题


Just updated my restler 3 to release candidate 4 to try oAuth2 implementation. I've a restler 3 server and client, the server should offer an oAuth2.0 server and the client should implement oAuth2.0. But the oAuth2.0 client example index.php page stays empty. What did I wrong? I set all permissions recursively to 777 and installed any dependencies from composer (I'm new to composer). But the stuff got downloaded to restler's vendor folder so it's there.

Thank's for reading and answering. Jan


回答1:


The .htaccess file turns off the display_errors. That's why you are getting a blank response.

Change it as shown below

DirectoryIndex index.php
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$ index.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule mod_php5.c>
    php_flag display_errors On
</IfModule>

Then you will get the clue!



来源:https://stackoverflow.com/questions/18895576/restler3-rc4-oauth-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!