PHPackages                             jonnx/laravel-spark-sso - 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. jonnx/laravel-spark-sso

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

jonnx/laravel-spark-sso
=======================

a simple SSO solution leveraging existing OAuth2 services

v0.12.1(5y ago)61301MITPHPCI failing

Since Nov 5Pushed 5y agoCompare

[ Source](https://github.com/Jonnx/laravel-spark-sso)[ Packagist](https://packagist.org/packages/jonnx/laravel-spark-sso)[ RSS](/packages/jonnx-laravel-spark-sso/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Laravel Spark SSO
=================

[](#laravel-spark-sso)

This package manges the OAuth handshake with Google so people can join you Laravel Spark based project even faster. Teams can configure their SSO domain so if they use GMail for their business, every new signup from that company will be added to the team automatically. This is a great way to reduce onboarding hurdles and eliminates the need for people to remember another password.

Once installed and configured, users will be able to join and login by going to the following url: `https://www.your-awesome-project.com/login/sso/google`

Getting Started
---------------

[](#getting-started)

### Install the package

[](#install-the-package)

This will install the package and its dependencies which includes the `laravel/socialite`library to hanle the OAuth handshake with a number of providers.

```
composer require jonnx/laravel-spark-sso

```

### Register Package ServiceProviders

[](#register-package-serviceproviders)

To achieve this, update your `config/app.php` file by adding the following lines

```
'providers' => [
    ...

    /**
     * Package Service Providers...
     */
    Jonnx\LaravelSparkSSO\LaravelSparkSSOServiceProvider::class,
    Laravel\Socialite\SocialiteServiceProvider::class,

    ...
]

```

also add the following aliases

```
'aliases' => [
    ...
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
    'User' => Namespace\For\Models\User::class,
    'Team' => Namespace\For\Models\Team::class,
]

```

### Update configuration

[](#update-configuration)

In order for Google to perform the handshake, you need a client and secret from their developer console. Once you have those keys, add the following lines to the `config/services.php` file:

```
'google' => [
    'client_id' => env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => env('APP_URL') . '/login/sso/google/callback',
],

```

### Add SSO Settings Link for Your Team Owners

[](#add-sso-settings-link-for-your-team-owners)

Your team owners will be able to edit their SSO setting independently at `https://www.your-domain.com/settings/teams/{id}/sso` for them to get to that url you should add the link to your project where they can find it. I recommend adding a link to the existing membership page in the Laravel Spark settings or adding it to the existing drop down menu in the `user.blade.php`

In a future release I would like to be able to automatically inject this link but for now it is up to the developer to do so.

### Customizing the SSO Settings Screen

[](#customizing-the-sso-settings-screen)

There is a view file that the owners of your teams can use to confiure their SSO email domain. If you want to change this template, simply publish the vendor files and edit the file in `views/vendor/laravel-spark-sso`.

```
php artisan vendor:publish

```

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~176 days

Total

8

Last Release

1907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/223ceec567c8ac8fba483b2c9d52f538ea0d9a1cb02a90dc5d75e933df164663?d=identicon)[Jonnx](/maintainers/Jonnx)

---

Top Contributors

[![Jonnx](https://avatars.githubusercontent.com/u/1399475?v=4)](https://github.com/Jonnx "Jonnx (18 commits)")

### Embed Badge

![Health badge](/badges/jonnx-laravel-spark-sso/health.svg)

```
[![Health](https://phpackages.com/badges/jonnx-laravel-spark-sso/health.svg)](https://phpackages.com/packages/jonnx-laravel-spark-sso)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42440.2M501](/packages/socialiteproviders-manager)[devdojo/auth

The auth package to make authentication in your laravel applications easy to use.

61872.5k2](/packages/devdojo-auth)[genealabs/laravel-socialiter

Automatically manage user persistence and resolution for any Laravel Socialite provider.

133392.3k](/packages/genealabs-laravel-socialiter)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34247.9k1](/packages/andrewdwallo-filament-companies)[directorytree/bartender

An opinionated way to authenticate users using Laravel Socialite.

28411.8k](/packages/directorytree-bartender)[chrisreedio/socialment

Provides Socialite functionality for Filament.

10978.5k1](/packages/chrisreedio-socialment)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
