2017 © Pedro Peláez
 

library oauth

Laravel OAuth IoC wrapper Library

image

hannesvdvreken/oauth

Laravel OAuth IoC wrapper Library

  • Saturday, March 14, 2015
  • by hannesvdvreken
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,643 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

OAuth wrapper for Laravel 4

Build Status, (*1)

Suggestion: This is just a Service Provider with a Laravel Session class for token storage. If you would like to keep using Lusitanian's PHPoAuthLib, please use artdarek/oauth-4-laravel by Dariusz Prząda. If you are interested in Guzzle-based service classes, look here!, (*2)

Usage

Follow the steps below and you will be able to get an object of the service class with one rule:, (*3)

$fb = OAuth::consumer('Facebook');
$fb = OAuth::consumer('Facebook', 'https://example.com/callback');

Optionally, add a second parameter with the URL which the service needs to redirect to. Default, it uses the URL::current(), provided by Laravel (L4)., (*4)

How to integrate

Alias

Add an alias to the bottom of app/config/app.php, (*5)

'OAuth' => 'hannesvdvreken\OAuth\facade\OAuth',

and register this service provider at the bottom of the providers array:, (*6)

'providers' => array(
    ...
    'hannesvdvreken\OAuth\OAuthServiceProvider',
),

Credentials

Add your credentials to app/config/oauth.php, (*7)

return array(

    /**
     * One of 'StreamClient' or 'CurlClient'. Defaults to 'StreamClient' if not provided.
     */
    'client' => 'StreamClient',

    'consumers' => array(
        'Facebook' => array(
            'client_id'     => '',
            'client_secret' => '',
            'scope' => array(),
        ),
    ),
);

License

MIT, (*8)

The Versions

14/03 2015

dev-master

9999999-dev https://github.com/hannesvdvreken/laravel-oauth

Laravel OAuth IoC wrapper Library

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php config oauth wrapper lusitanian

18/03 2014

v0.0.5

0.0.5.0 https://github.com/hannesvdvreken/laravel-oauth

Laravel OAuth IoC wrapper Library

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php config oauth wrapper lusitanian

21/09 2013

0.0.3

0.0.3.0 https://github.com/hannesvdvreken/laravel-oauth

Laravel OAuth IoC wrapper Library

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php config oauth wrapper lusitanian