bshaffer/oauth2-server-demo — pull request #4 by till (2012-12-20 20:11:05+00:00)
Title: Setup improvements

We've been trying to get this code running and here are a few improvements up front.

We are also in the process of trying to figure out why the final request to `/grant` times out - no luck yet and probably also a PR for [bshaffer/oauth2-server-php](https://github.com/bshaffer/oauth2-server-php).

---

### Changelog

Switch to dev-master (since dev-develop contains bugs).

rebuild_db.php

* move rebuild_db.php to a bin directory and adjust the path to the database
* make it executable and add a shebang

Fixes by @dazz:

* Add missing table to rebuild_db.php script.
* Add some sample data (note: the code requires to run on port 80 - somewhere.)

The piece about port 80 may or may not be a bug. It took me a while to debug this with the custom curl code in there and it just said that it timed out while trying to request something on `localhost:80` and I had the code running on `localhost:8002` (through PHP's internal web server).