Restler3 RC4:oAuth不起作用 [英] Restler3 RC4: oAuth doesn't work
问题描述
只是更新了我的Restler 3,以发布候选版本4来尝试oAuth2实现.我有一个Restler 3服务器和客户端,该服务器应提供一个oAuth2.0服务器,该客户端应实现oAuth2.0.但是oAuth2.0客户端示例index.php页面保持空白. 我怎么了我将所有权限递归设置为777,并安装了composer的所有依赖项(我是composer的新手).但是,这些东西已下载到restler的vendor文件夹中,因此就在那.
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
推荐答案
.htaccess
文件关闭display_errors.这就是为什么您得到空白的答复.
The .htaccess
file turns off the display_errors. That's why you are getting a blank response.
如下所示进行更改
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>
然后您将获得线索!
这篇关于Restler3 RC4:oAuth不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!