I'd like to make an OAuth implementation for my site. Not one where I allow users to connect to FB, Twitter, but rather one which connects users or their apps to my site.
There are many good reads of how to do this, but less code demonstrating an actual example. The code bases I've found while impressive are overwhelming.
Might someone point me to a simple PHP script which implements OAuth? I realize there is a database component but assume that part can be described in words, though I'm using MySQL if there might be companion code for that.