2017 © Pedro Peláez
 

library apiauth

Laravel filters to implement common API authorisation tasks using OAuth.

image

originalmind/apiauth

Laravel filters to implement common API authorisation tasks using OAuth.

  • Wednesday, October 1, 2014
  • by originalmind
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

laravel-apiauth

A collection of filters to assist with protecting API routes. Currently only supports the Resource Server implementation from the https://packagist.org/packages/lucadegasperi/oauth2-server-laravel package., (*1)

** Work in Progress!** This package needs more work to be made generic., (*2)

Installation

composer.json:, (*3)

"require": {
    "originalmind/apiauth": "0.1.*" 
}

app/config/app.php:, (*4)

Add the following to your service provider array:, (*5)

'OriginalMind\ApiAuth\ApiAuthServiceProvider',

in your controller constructor:, (*6)

beforeFilter('oauth:admin', array('only' => array('index', 'destroy')));
        $this->beforeFilter('oauth:enduser', array('only' => array('show', 'update')));

        // Token owner checking - from this package
        $this->beforeFilter('apiauthuserowner:mymodel', array('only' => array('show', 'update')));
    }

?>

The Versions

01/10 2014

dev-master

9999999-dev

Laravel filters to implement common API authorisation tasks using OAuth.

  Sources   Download

MIT

The Requires

 

by Joe Niland

laravel authorization oauth filter

01/10 2014

0.1.2

0.1.2.0

Laravel filters to implement common API authorisation tasks using OAuth.

  Sources   Download

MIT

The Requires

 

by Joe Niland

laravel authorization oauth filter

30/09 2014

0.1.1

0.1.1.0

Laravel filters to implement common API authorisation tasks using OAuth.

  Sources   Download

MIT

The Requires

 

by Joe Niland

laravel authorization oauth filter

30/09 2014

0.1.0

0.1.0.0

OAuth API Authorisation Filters

  Sources   Download

MIT

The Requires

 

by Joe Niland

authorization oauth filter