bgallagher / bgoauthprovider
ZF2 OAuth 1.0a Provider module
0.1.6
2013-05-28 08:38 UTC
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
- zf-commons/zfc-user-doctrine-orm: 0.*
This package is not auto-updated.
Last update: 2024-12-21 13:46:46 UTC
README
A ZF2 OAuth 1.0a provider module (WIP)
This module allows your ZF2 app to act as an OAuth 1.0a Provider, allowing you to protect you api endpoints with OAuth.
It is still a WIP, any input or pull request are very much welcomed.
Requirements
ZF2 modules:
- ZfcUser (latest master)
- ZfcUserDoctrineORM (latest master)
Pecl Extensions
##Installation
-
Add the module to your composer.json requirments.
"require": { "bgallagher/bgoauthprovider": "dev-master" }
-
composer.phar update
-
Add "BgOauthProvider" to your application.config.php file.
Config Example
<?php return array( 'bgoauthprovider' => array( 'disable_layout_on_authorisation_page' => true, 'acl_config' => array( array('routeName' => 'api/endpoint', 'role' => '3l', 'method' => array('post')), array('routeName' => 'api/endpoint/another', 'role' => '2l', 'method' => array('delete')), ), ), );