Download the PHP package matt-allan/passport-socialite without Composer
On this page you can find all versions of the php package matt-allan/passport-socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matt-allan/passport-socialite
More information about matt-allan/passport-socialite
Files in matt-allan/passport-socialite
Package passport-socialite
Short Description A socialite driver for Passport
License MIT
Homepage https://github.com/matt-allan/passport-socialite
Informations about the package passport-socialite
Laravel Passport Socialite Driver
A Laravel Socialite driver for authenticating with Laravel Passport OAuth servers.
Installation
This package can be installed using Composer. The Socialite package will also be installed if it is not already installed.
Configuration
Before using this driver, you will need to add credentials for the Passport server. These credentials should be placed in your config/services.php
configuration file, and should use the key passport
. For example:
Usage
The Passport driver works identically to the other Socialite drivers. All of the methods mentioned in the official documentation are available.
You can access the passport driver using the Socialite
facade:
The current user's details will be retrieved from the default api/user
route.
In addition to the standard Socialite methods a refresh
method is available to easily refresh expired tokens. The refresh
method accepts a refresh token and returns an updated User
with new access and refresh tokens if the token is refreshed successfully.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Matt Allan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.