Code Monkey home page Code Monkey logo

kohana-oauthy's Introduction

#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

kohana-oauthy's People

Contributors

terebentina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.