Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 828 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 828 Bytes

BgOauthProvider

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:

Pecl Extensions

Config Example

'BgOauthAcl' => array(
    array('routeName' => 'api/endpoint', 'role' => '3l', 'method' => array('post')),
    array('routeName' => 'api/endpoint/another', 'role' => '2l', 'method' => array('delete')),
),