brothersco / laravel-socialite-login
Laravel Socialite Login
v1.1.1
2015-06-11 21:54 UTC
Requires
- php: >=5.4.0
- illuminate/config: ~5.0
- illuminate/database: ~5.0
- illuminate/support: ~5.0
- laravel/socialite: ~2.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-04-13 14:55:53 UTC
README
Purpose
Simplifies exposing Laravel's baked in Socialite functionality.
Instructions
Include as a trait in app/Http/Controllers/Auth/AuthController.php.
use Broco\SocialiteLogin\Auth\AuthenticatesSocialiteLogin;
class AuthController extends Controller {
use AuthenticatesSocialiteLogin;
}
Optionally configure:
- socialite-login.userclass: The class to use as the application's user object.
- socialite-login.intended-redirect.success: Redirect url on login success.
- socialite-login.intended-redirect.failure: Redirect url on login failure.
- socialite-login.limit-access.*: Access rules (e.g. limit to email domain).
References
Inspiration Guide: http://www.codeanchor.net/blog/complete-laravel-socialite-tutorial/
Boilerplate: https://github.com/cviebrock/laravel5-package-template