Download the PHP package creatvstudio/socialite-auth without Composer
On this page you can find all versions of the php package creatvstudio/socialite-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creatvstudio/socialite-auth
More information about creatvstudio/socialite-auth
Files in creatvstudio/socialite-auth
Package socialite-auth
Short Description Provides easy to configure socialite authentication
License MIT
Homepage https://github.com/creatvstudio/socialite-auth
Informations about the package socialite-auth
Socialite Auth
This package provides easy laravel socialite authentication. By CreatvStudio
Requirements
To get started use composer to install Laravel Socialite. See Laravel Socialite official documentation.
Installation
You can install the package via composer:
Configuration
Before using Socialite, you will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your config/services.php
configuration file, and should use the key facebook
, twitter
, linkedin
, google
, github
, gitlab
or bitbucket
, depending on the providers your application requires. For example:
User Model
Use the HasSocialite
trait in your User
model.
Controller
Create a new controller to handle your requests
Then use the AuthenticatesSocialiteUser
trait. (In the future we plan to create a stub)
Authenticated
Just like Laravel Auth Controllers
, Socialite Auth provide an empty authenticated(Request $request, $user)
method that may be overwritten if desired:
Routing
On your routes/web.php
add the login routes.
Guard Customization
You may also customize the "guard" that is used to authenticate and register users. To get started, define a guard method on your LoginController, RegisterController, and ResetPasswordController. The method should return a guard instance:
Roadmap
- [ ] Add stub for
Auth/SocialiteController
- [ ] Add Tests
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jeffrey Naval
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.