vinelab / social-auth
Installs: 1 309
Dependents: 1
Suggesters: 0
Security: 0
Stars: 10
Watchers: 4
Forks: 4
Open Issues: 1
Requires
- php: >=5.4
- illuminate/database: *
- illuminate/support: *
- vinelab/assistant: 1.*
- vinelab/http: 1.*
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 4.*
README
Social Authentication - Laravel
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