2017 © Pedro Peláez
 

library apigility-auth

Abstracts help class for zend 2

image

2ends/apigility-auth

Abstracts help class for zend 2

  • Saturday, April 25, 2015
  • by JhonMike
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ApiAuth

php composer.phar require jhonmike/apigility-auth:dev-master

Config Oauth2

Create config/autoload/user.global.php, (*1)

<?php
return array(
    'db' => array(
        'adapters' => array(
            'Db\\Adapter' => array(
                'driver' => 'Pdo_Mysql',
                'dsn' => 'mysql:dbname=database_name;host=localhost',
                'username' => 'root',
                'password' => '',
                'driver_options' => array(
                    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
                ),
            ),
        ),
    )
);

Create config/autoload/oauth2.global.php, (*2)

<?php
return array(
    'zf-oauth2' => array(
        'db' => array(
            'dsn' => 'mysql:dbname=database_name;host=localhost',
            'username' => 'root',
            'password' => '',
        ),
        'storage' => 'ZF\\OAuth2\\Adapter\\PdoAdapter',
        'allow_implicit' => false,
        'enforce_state'  => true,
        'access_lifetime' => 3600,
    ),
);

The Versions

25/04 2015

dev-master

9999999-dev https://github.com/jhonmike/ApiAuth

Abstracts help class for zend 2

  Sources   Download

MIT

The Requires

 

acl user auth rest zend login apigility

17/12 2014

0.0.1

0.0.1.0 https://github.com/jhonmike/ApiAuth

Abstracts help class for zend 2

  Sources   Download

MIT

The Requires

 

acl user auth rest zend login apigility