Skip to content

OAuth protocol 2.0 implement for Kohana 3, including server and client

License

Notifications You must be signed in to change notification settings

ee99ee/kohana-oauthy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Kohana OAuth 2 Module project status#

#OAuth protocal v2 draft 22

Requirement

  1. php v5.2+, curl extension to run the demo

  2. MySQL, SQLite, MSSQL or NOSQL database

  3. Kohana v3.0.x, I have no plan to support v3.1+ ATM

  4. Apache, Nignx, a web server

Server

Install and configuration

  1. Create the oauth data tabe by execute oauth.sql in doc directory

  2. Configurate the server parameters in config/oauthz-server.php

Modify interface show to users

  1. Client have to register an account before they access the protected resources. they can also manage their account

  2. Resource owners personal information management.

<?php

class Controller_Oauth extends Oauthz_Server {

}

See more

Develop grant type or response type handler extensions

  1. Simpler way myextension.php
<?php

class Oauthz_Extension_MyExtension extends Oauthz_Extension {

    public function execute()
    {
        // todo
    }
}

then drop this file into the right place

  1. Complex one, e.g. assersion

Develop web service API protected by OAuth2

<?php

class Controller_Api extends Oauthz_Api {

}

See more

Overlay standard grant type or response type handler

Not recommend but you can, here is

<?php

class Oauthz_MyController extends Oauthz_Controller {

    protected function code()
    {
        // todo
    }
}

Client

Install and configuration

  1. Configurate the client parameters in config/oauthz-client.php

Develop resources request handler

<?php

class Controller_Client extends Oauthz_Client {

}

See more

Demo explaination

Demo at oalite.com

User guide

ISC License (ISCL)

http://www.opensource.org/licenses/isc-license.txt

Want to donate ?

To support this project, via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Support Oauthz further development). Thanks!

Want to be helped and buy me some coffee ?

Welcome

About

OAuth protocol 2.0 implement for Kohana 3, including server and client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published