Giter Site home page Giter Site logo

mohamedsharaf / ldczfcuseroauth2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamlundrigan/ldczfcuseroauth2

0.0 2.0 0.0 264 KB

An extension for zf-oauth2 allowing use of ZfcUser as authentication source

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%

ldczfcuseroauth2's Introduction

LdcZfcUserOAuth2

What?

An extension for zf-oauth2 allowing use of ZfcUser as authentication source


Latest Stable Version License Build Status Code Coverage Scrutinizer Code Quality


How?

  1. Install module using Composer

    composer require adamlundrigan/ldc-zfc-user-oauth2:<version>
    
  2. Enable required modules in your application.config.php file:

    • ZfcBase
    • ZfcUser
    • LdcZfcUserOAuth2
  3. Configure ZfcUser

  4. Override the zf-ouath2 configuration to use the provided storage provider:

     return array(
        'zf-oauth2' => array(
            'storage' => 'ldc-zfc-user-oauth2-storage-pdo', 
        ),
    );
    
  5. Override the authentication adapter used by ZfcUser. Locate the auth_adapters key in your zfc-user.global.php config file and replace it with this:

    'auth_adapters' => array( 100 => 'ldc-zfc-user-oauth2-authentication-adapter-db' ),
    

TODO

  • Use ZfcUser's authentication mechanism in OAuth2 server
  • Populate ZfcUser auth storage when OAuth2 server authentication succeeds
  • Some tests might be a good idea
  • Some documentation and an example might also be good ideas

ldczfcuseroauth2's People

Contributors

adamlundrigan avatar

Watchers

James Cloos avatar Mohamed Sharaf 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.