adamlundrigan/ldc-zfc-user-oauth2

OAuth2 server integration for ZfcUser

Maintainers

👁 adamlundrigan

Package info

github.com/adamlundrigan/LdcZfcUserOAuth2

pkg:composer/adamlundrigan/ldc-zfc-user-oauth2

Statistics

Installs: 586

Dependents: 0

Suggesters: 0

Stars: 11

Open Issues: 4

1.0.0 2014-11-08 15:57 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

  • adamlundrigan/ldc-zfc-user-apigility: *

BSD-3-Clause c95c1106fbaa1a8d11fcd252ad9f4bccbb11ea51

  • Adam Lundrigan <adam.woop@lundrigan.ca>

zfcuserapigilityzf-oauth2

This package is not auto-updated.

Last update: 2026-06-16 12:07:54 UTC


README

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