2017 © Pedro Peláez
 

library laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

image

simpleusername/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  • Tuesday, October 27, 2015
  • by SimpleUsername
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 206 Forks
  • 0 Open issues
  • 32 Versions
  • 0 % Grown

The README.md

Laravel OAuth 2.0

This is a port to Laravel 4 of Talor Otwell's Laravel-oAuth2 bundle. Which he based on the CodeIgniter OAuth2 Spark maintained by Phil Sturgeon, (*1)

Authorize users with your application in a driver-base fashion meaning one implementation works for multiple OAuth 2 providers. This is only to authenticate onto OAuth2 providers and not to build an OAuth2 service., (*2)

Note that this package ONLY provides the authorization mechanism. There's an example controller below., (*3)

Installation via Composer

Add this to you composer.json file, in the require object;, (*4)

"SimpleUsername/laravel-oauth2": "0.4.*"

After that, run composer install to install Laravel OAuth 2.0., (*5)

Currently Supported

  • Facebook
  • Foursquare
  • GitHub
  • Google
  • iHealth
  • Jawbone
  • Mailchimp
  • Misfit
  • Moves
  • Runkeeper
  • Strava
  • Uber
  • Under Armour
  • Windows Live
  • YouTube

Usage Example

http://example.com/auth/session/facebook, (*6)


use OAuth2\OAuth2; use OAuth2\Token_Access; use OAuth2\Exception as OAuth2_Exception; public function action_session($provider) { $provider = OAuth2::provider($provider, array( 'id' => 'your-client-id', 'secret' => 'your-client-secret', )); if ( ! isset($_GET['code'])) { // By sending no options it'll come back here return $provider->authorize(); } else { // Howzit? try { $params = $provider->access($_GET['code']); $token = new Token_Access(array( 'access_token' => $params->access_token )); $user = $provider->get_user_info($token); // Here you should use this information to A) look for a user B) help a new user sign up with existing data. // If you store it all in a cookie and redirect to a registration page this is crazy-simple. echo "<pre>"; var_dump($user); } catch (OAuth2_Exception $e) { show_error('That didnt work: '.$e); } } }

The Versions

27/10 2015

dev-master

9999999-dev https://github.com/simpleusername/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

29/03 2015

0.4.13

0.4.13.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

24/03 2015

0.4.12

0.4.12.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

22/02 2015

0.4.11

0.4.11.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

15/02 2015

0.4.10

0.4.10.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

03/12 2014

0.4.9

0.4.9.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

02/12 2014

0.4.8

0.4.8.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

24/10 2014

0.4.7

0.4.7.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

02/07 2014

0.4.6

0.4.6.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

30/06 2014

0.4.5

0.4.5.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

24/02 2014

0.4.3

0.4.3.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

24/02 2014

0.4.4

0.4.4.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

10/02 2014

0.4.2

0.4.2.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

08/01 2014

0.4.1

0.4.1.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

06/01 2014

0.4.0

0.4.0.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

04/12 2013

0.3.10

0.3.10.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

26/11 2013

0.3.9

0.3.9.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

21/11 2013

0.3.8

0.3.8.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

12/11 2013

0.3.7

0.3.7.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

05/11 2013

0.3.6

0.3.6.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

05/11 2013

0.3.5

0.3.5.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

16/10 2013

0.3.4

0.3.4.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

16/10 2013

0.3.2

0.3.2.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

16/10 2013

0.3.3

0.3.3.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

02/10 2013

0.3.1

0.3.1.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

31/08 2013

0.3.0

0.3.0.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

25/06 2013

0.2.6

0.2.6.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

11/06 2013

0.2.5

0.2.5.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

24/05 2013

0.2.4

0.2.4.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

23/05 2013

0.2.3

0.2.3.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

23/05 2013

0.2.2

0.2.2.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

laravel oauth2

23/05 2013

0.2.1

0.2.1.0 http://github.com/madewithlove/laravel-oauth2

Authorize users in your application with multiple OAuth 2.0 providers.

  Sources   Download

The Requires

 

oauth2