Skip to content

bobflay/social-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Social Authentication - Laravel 4

Installation

Using composer require the package vinelab/social-auth. Edit app.php and add 'Vinelab\Auth\AuthServiceProvider' to the 'providers' array. It will automatically alias itself as SocialAuth which is a Facade.

Usage

<?php

// start the authentication process
$provider = 'facebook';

// inital authentication route
SocialAuth::authenticate($provider);

// callback route should do this
$profile = SocialAuth::profile($provider, Input::get());

$profile->provider(); // facebook
$profile->info(); // the facebook profile information

About

Social network authentication package

Resources

License

Stars

Watchers

Forks

Packages

No packages published