PHPackages                             tollbridge/laravel-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. tollbridge/laravel-socialite

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

tollbridge/laravel-socialite
============================

Tollbridge.co service provider for Laravel Socialite authentication.

v1.0.1(5y ago)013[1 PRs](https://github.com/tollbridge/tollbridge-laravel-socialite/pulls)MITPHPPHP ^7.4

Since Feb 10Pushed 3y ago3 watchersCompare

[ Source](https://github.com/tollbridge/tollbridge-laravel-socialite)[ Packagist](https://packagist.org/packages/tollbridge/laravel-socialite)[ Docs](https://github.com/tollbridge/tollbridge-laravel-socialite)[ RSS](/packages/tollbridge-laravel-socialite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Tollbridge OAuth2 Provider for Laravel Socialite
================================================

[](#tollbridge-oauth2-provider-for-laravel-socialite)

[Tollbridge](https://tollbridge.co) is a user-authentication, subscription and paywall software as a service. This package will help you to implement Tollbridge's based authentication in your [Laravel](https://laravel.com) application in just a few minutes.

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

[](#installation)

Install via composer

```
composer require tollbridge/laravel-socialite
```

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

[](#configuration)

To access your Tollbridge credentials, visit the `Integrations` section in the Tollbridge admin. Add the provided credentials on the Tollbridge platform to your `.env` file:

```
TOLLBRIDGE_APP_ID=
TOLLBRIDGE_CLIENT_ID=
TOLLBRIDGE_CLIENT_SECRET=

```

### Callback URL

[](#callback-url)

In the Tollbridge `Integrations` section, you will need to set the *Callback URL* to match the correct path in your application. By default this URL will be your full protocol/hostname along with the path `/tollbridge/callback`. Note that this callback path is fully configurable within the tollbridge config file.

`url(config('tollbridge.routing.callback'))` e.g.

### Tollbridge Configuration File

[](#tollbridge-configuration-file)

You can publish the configuration file to the local project directory using artisan:

```
php artisan vendor:publish --tag=tollbridge-config

```

This is the content of the config file:

```
