Download the PHP package mathieutu/lvconnect-socialite without Composer
On this page you can find all versions of the php package mathieutu/lvconnect-socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mathieutu/lvconnect-socialite
More information about mathieutu/lvconnect-socialite
Files in mathieutu/lvconnect-socialite
Package lvconnect-socialite
Short Description LVConnect OAuth2 Provider for Laravel Socialite
License MIT
Homepage https://github.com/mathieutu/lvconnect-socialite
Informations about the package lvconnect-socialite
LVConnect Socialite
Abstract
LVConnect is a project that aims to unify login over all Linkvalue apps with an authentication service based on OAuth2.
Linkvalue is a french web/mobile agency.
Socialite is a simple and convenient way to authenticate users with OAuth providers for Laravel.
This package is an internal tool. You can download it and use it as an example for making your own, but it will be unusable if you're not a Linkvalue partner.
Installation
This assumes that you have composer installed globally
Configuration setup
You will need to add an entry to the services configuration file so that after config files are cached for usage in production environment (Laravel command artisan config:cache
) all config is still available.
Add to config/services.php
.
If you want to do some test with another url that production one, you can optionally add an url key with the base url:
Fill your .env
/ environment variables:
Create your application in the LVConnect website and fill the information in your env:
Usage
See Laravel docs on socialite usage.
- You should now be able to use it like you would regularly use Socialite.
You can publish all the auth scaffolding with the following command:
Stateless
You can set whether or not you want to use the provider as stateless. LVConnect supports whatever option you choose.
Note: If you are using this with Lumen, all providers will automatically be stateless since Lumen does not keep track of state.
The LVConnect User.
The user that socialite will provide has this shape:
It's a instance of \Laravel\Socialite\Two\User class.
Reference
License
This LVConnect Socialite package is an open-sourced software licensed under the MIT license.
Contributing
Issues and PRs are obviously welcomed and encouraged, for features as well as documentation.
All versions of lvconnect-socialite with dependencies
socialiteproviders/manager Version ^3.3
illuminate/console Version ~5.7|^6.0|^7.0
ext-json Version *