Search code examples
phpoauth-2.0restler

Restler3 RC4: oAuth doesn't work


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


Solution

  • 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!