adamlundrigan / LdcZfcUserOAuth2

An extension for zf-oauth2 allowing use of ZfcUser as authentication source
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

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