PHPackages                             smactactic/selso - 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. smactactic/selso

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

smactactic/selso
================

Handler authorize for client

v1.0.1(9mo ago)027MITPHPPHP ^8.2

Since Aug 1Pushed 9mo agoCompare

[ Source](https://github.com/smactactic-development/selso)[ Packagist](https://packagist.org/packages/smactactic/selso)[ RSS](/packages/smactactic-selso/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Selso – Laravel JWT Client Authentication Handler
=================================================

[](#selso--laravel-jwt-client-authentication-handler)

[![Latest Version](https://camo.githubusercontent.com/35605813e145a57864c4468e9a91bb813464c6a0c6041f68a487f90f2a4d1a88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d61637461637469632f73656c736f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smactactic/selso)[![License](https://camo.githubusercontent.com/7f118b138f799ebd45881529519f1c771117890be0c40ee1d8a69d5df01d322c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736d61637461637469632f73656c736f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smactactic/selso)

`smactactic/selso` is a Laravel package that provides secure JWT (JSON Web Token) "Our" Single Sign On authentication for client applications, built on top of [firebase/php-jwt](https://github.com/firebase/php-jwt). The package simplifies JWT token handling and integrates seamlessly with Laravel's middleware system.

Features
--------

[](#features)

- Easy JWT authentication setup for Laravel applications
- Middleware protection for routes
- Configurable client credentials and redirects
- Built on the reliable firebase/php-jwt library

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

[](#installation)

Install the package via Composer:

```
composer require smactactic/selso
```

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

[](#configuration)

### Environment Variables

[](#environment-variables)

Publish the configuration file:

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

Update the default guard in `config/auth.php`:

```
'defaults' => [
    'guard' => env('AUTH_GUARD', 'selso'),
    'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
],

```

Add a new guard under the `guards` section:

```
'guards' => [
    // .....

    'selso' => [
        'driver' => 'session',
        'provider' => 'selso',
    ],
]

```

Register a new user `provider` in the providers section:

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

    'selso' => [
        'driver' => 'selso',
    ],
],

```

Configure your environment variables in `.env`:

```
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=
SSO_REDIRECT_URI=http://localhost:8001/auth/callback
SSO_SERVER_URL=http://localhost:8000

```

Post-Login Redirect
-------------------

[](#post-login-redirect)

Set the default redirect path after successful authentication in config/selso.php:

```
'redirect_after_login' => '/dashboard',
```

Usage
-----

[](#usage)

Protect your routes using the included middleware:

```
Route::middleware('selso.auth')->group(function () {
    Route::get('/dashboard', [DashboardController::class, 'index']);
    // Add other protected routes here
});
```

Security
--------

[](#security)

If you discover any security related issues, please email the author directly instead of using the issue tracker.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance57

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~3 days

Total

2

Last Release

287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc23edaf58c61f2cf678f065fe2e5cffb9e0343dca901632bce5648bcd830eaa?d=identicon)[harithya](/maintainers/harithya)

![](https://www.gravatar.com/avatar/a764c105ff1dc39ae9d2426afac9503faf6722ca7520351136d814e713b91e58?d=identicon)[fikriwado](/maintainers/fikriwado)

---

Top Contributors

[![fikriwado](https://avatars.githubusercontent.com/u/60835073?v=4)](https://github.com/fikriwado "fikriwado (16 commits)")

### Embed Badge

![Health badge](/badges/smactactic-selso/health.svg)

```
[![Health](https://phpackages.com/badges/smactactic-selso/health.svg)](https://phpackages.com/packages/smactactic-selso)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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