A demo for an application running OAuth2 server.
Project is not maintained any longer. Feel welcome to fork and continue development.
An early stage project. Make sure you specifically set up your app in "http://localhost/oauthapp" directory. As of right now, I am trying to get the user credentials to work in conjunction with CakePHP's system. Once that's complete, I will refactor the code design.
-
Use Composer to install this application:
$ git clone git://github.com/skyserpent/cakephp-oauth2-demo.git $ cd oauth2-demo-php $ curl -s http://getcomposer.org/installer | php $ ./composer.phar install
-
Setup your db - https://gist.github.com/skyserpent/8799315
-
Add a user by going to "http://localhost/oauthapp/users/add"
-
Direct your browser to "http://localhost/oauthapp" to visit the main page.