定制 bgallagher/bgoauthprovider 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bgallagher/bgoauthprovider

最新稳定版本:0.1.6

Composer 安装命令:

composer require bgallagher/bgoauthprovider

包简介

ZF2 OAuth 1.0a Provider module

README 文档

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:

Pecl Extensions

##Installation

  1. Add the module to your composer.json requirments.

    "require": {
        "bgallagher/bgoauthprovider": "dev-master"
    }
  2. composer.phar update

  3. 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')),
        ),
    ),

);

统计信息

  • 总下载量: 203
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-17