#OAuth protocal v2 draft 22
-
php v5.2+, curl extension to run the demo
-
MySQL, SQLite, MSSQL or NOSQL database
-
Kohana v3.0.x, I have no plan to support v3.1+ ATM
-
Apache, Nignx, a web server
-
Create the oauth data tabe by execute
oauth.sql
in doc directory -
Configurate the server parameters in
config/oauthz-server.php
-
Client have to register an account before they access the protected resources. they can also manage their account
-
Resource owners personal information management.
<?php
class Controller_Oauth extends Oauthz_Server {
}
See more
- Simpler way
myextension.php
<?php
class Oauthz_Extension_MyExtension extends Oauthz_Extension {
public function execute()
{
// todo
}
}
then drop this file into the right place
- Complex one, e.g. assersion
<?php
class Controller_Api extends Oauthz_Api {
}
See more
Not recommend but you can, here is
<?php
class Oauthz_MyController extends Oauthz_Controller {
protected function code()
{
// todo
}
}
- Configurate the client parameters in
config/oauthz-client.php
<?php
class Controller_Client extends Oauthz_Client {
}
See more
http://www.opensource.org/licenses/isc-license.txt
To support this project, via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Support Oauthz further development). Thanks!
Welcome