Skip to content

broco1974/laravel-socialite-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Socialite Login

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: https://www.codeanchor.net/blog/complete-laravel-socialite-tutorial/
Boilerplate: https://github.com/cviebrock/laravel5-package-template

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages