Demo project using php-oauth for OAuth 2.0 authorization with simpleSAMLphp for authentication and sample client and server applications to test it all out.