PHPackages                             dejc/passport-socialite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dejc/passport-socialite

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

dejc/passport-socialite
=======================

A socialite driver for Passport

0.3.2(5y ago)128MITPHPPHP &gt;=7.1

Since Jul 26Pushed 5y agoCompare

[ Source](https://github.com/dejanmeznarc/passport-socialite)[ Packagist](https://packagist.org/packages/dejc/passport-socialite)[ Docs](https://github.com/matt-allan/passport-socialite)[ RSS](/packages/dejc-passport-socialite/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

Laravel Passport Socialite Driver
---------------------------------

[](#laravel-passport-socialite-driver)

[![Packagist License](https://camo.githubusercontent.com/bbdce383a6ecffb86afdb2446e565ef5a0d0a97a725d59f573866d61a2750deb/68747470733a2f2f706f7365722e707567782e6f72672f6d6174742d616c6c616e2f70617373706f72742d736f6369616c6974652f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/b769f465a6e0906c6ed03cf427444e4e873061fea0323d4d347344e75b456015/68747470733a2f2f706f7365722e707567782e6f72672f6d6174742d616c6c616e2f70617373706f72742d736f6369616c6974652f76657273696f6e2e706e67)](https://packagist.org/packages/matt-allan/passport-socialite)[![Build Status](https://camo.githubusercontent.com/3d9aab9b9f40a6c36f2b7428493e30032d871dfca3831f4f3fcac6e2abfa5967/68747470733a2f2f7472617669732d63692e636f6d2f6d6174742d616c6c616e2f70617373706f72742d736f6369616c6974652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/matt-allan/passport-socialite)

A [Laravel Socialite](https://laravel.com/docs/5.8/socialite) driver for authenticating with [Laravel Passport](https://laravel.com/docs/5.8/passport) OAuth servers.

Installation
------------

[](#installation)

This package can be installed using Composer. The Socialite package will also be installed if it is not already installed.

```
composer require matt-allan/passport-socialite

```

Configuration
-------------

[](#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:

```
'passport' => [
    'client_id' => env('PASSPORT_CLIENT_ID'),
    'client_secret' => env('PASSPORT_CLIENT_SECRET'),
    'url' => env('PASSPORT_URL'),
    'redirect' => env('PASSPORT_REDIRECT'),
],
```

Usage
-----

[](#usage)

The Passport driver works identically to the other Socialite drivers. All of the methods mentioned in the [official documentation](https://laravel.com/docs/5.8/socialite) are available.

You can access the passport driver using the `Socialite` facade:

```
