vinelab/social-auth

Installs: 1 185

Dependents: 1

Stars: 9

Watchers: 3

Forks: 3

Open Issues: 1

Language: PHP

v3.1.1 2015-03-22 22:58 UTC

README

Build Status

Dependency Status

SensioLabsInsight

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.

Configuration

Publish the configuration file using php artisan vendor:publish

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