PHPackages                             uisits/laravel-oidc - 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. uisits/laravel-oidc

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

uisits/laravel-oidc
===================

Shibboleth OIDC driver for Laravel Socialite

v10.0.3(2y ago)12.2k[1 issues](https://github.com/uisits/laravel-oidc/issues)1MITPHP

Since Jun 7Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/uisits/laravel-oidc)[ Packagist](https://packagist.org/packages/uisits/laravel-oidc)[ RSS](/packages/uisits-laravel-oidc/feed)WikiDiscussions 2.x Synced today

READMEChangelog (10)Dependencies (9)Versions (29)Used By (1)

Laravel Shibboleth
==================

[](#laravel-shibboleth)

Laravel Shibboleth is a comprehensive authentication package for Laravel applications that provides seamless integration with Shibboleth and OpenID Connect (OIDC) authentication protocols. This package supports OIDC authentication methods, allowing flexible implementation based on your organization's requirements. It includes features for user authorization via Spatie/permissions package, token introspection, and a simple installation process to get your authentication system up and running quickly.

Usage:
------

[](#usage)

- Install the package: `composer require uisits/laravel-oidc`
- **Important:** Install the package: ` php artisan shibboleth:install`

> Running this command performs the following actions:
>
> - Installs `spatie/laravel-permission` in your app.
> - Publish assets such as images, build assets to appropriate directories in your project.
> - Publish the `shibboleth-oidc.php` config file to your config folder.
> - Publish migrations.

- Set environment variables in .env file (Check the `config/shibboleth.php` file)
- For Tri-Campus authentication, set the environment variables as per the config file and set `'tri-campus-provider' => true,` in `config/shibboleth-oidc.php` file.

#### Migrate database

[](#migrate-database)

Run `php artisan migrate`

You can extend the roles and permissions functionality to add new roles or permissions using [Spatie Permission package](https://spatie.be/docs/laravel-permission/v5/basic-usage/basic-usage)

#### Token Introspection

[](#token-introspection)

For token introspection using OIDC add the following middleware to the `app/Http/Kernel.php` file:

Under `alias` property:

```
'introspect' => \UisIts\Oidc\Http\Middleware\Introspect::class,
```

Now you can use the middleware on your protected route as such:

```
use UisIts\Oidc\Http\Middleware\Introspect;

Route::middleware(['introspect'])->get('/introspect', function (Request $request) {
    dump($request->bearerToken());
    dd(Introspect::getUserFromToken($request->bearerToken()));
})->name('introspect');
```

Note: Below is the response received when you get a user from token

```
Introspect::getUserFromToken($request->bearerToken());

array:8 [▼ // routes/api.php:24
  "sub" => "xyz@abc.org"
  "uisedu_is_member_of" => array:42 [▶]
  "uisedu_uin" => "123456789"
  "preferred_username" => "xyz"
  "given_name" => "John"
  "preferred_display_name" => "Doe, John"
  "family_name" => "Doe"
  "email" => "xyz@abc.org"
];
```

#### Code Style

[](#code-style)

You can use Laravel pint to automatically fix code styles. `./vendor/bin/pint`

Testing
-------

[](#testing)

You can run the tests for the package using pest. ` ./vendor/bin/pest`

Issues and Concerns
-------------------

[](#issues-and-concerns)

Please open an issue on the GitHub repository with detailed description and logs (if available).

> In case of security concerns, please write an email to [UIS ITS ADDS Team](uisappdevdl@uis.edu).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

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

Recently: every ~28 days

Total

28

Last Release

59d ago

Major Versions

v9.1.4 → v10.0.22023-09-12

9.x-dev → 10.x-dev2024-01-22

v1.0.1 → 2.02025-07-11

v1.0.2 → 2.x-dev2026-03-23

v2.2 → v3.02026-05-05

PHP version history (2 changes)2.x-devPHP ^8.2|^8.3|^8.4|^8.5

v3.0PHP ^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/740bacd4c073191efba56c0256c7db4e2f3c1dac40f7ff44c1c904e7571860a0?d=identicon)[uisits](/maintainers/uisits)

---

Top Contributors

[![PrasadChinwal](https://avatars.githubusercontent.com/u/7385673?v=4)](https://github.com/PrasadChinwal "PrasadChinwal (29 commits)")

---

Tags

laravelsocialiteshibbolethLaravel Socialite Shibboleth Provider

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/uisits-laravel-oidc/health.svg)

```
[![Health](https://phpackages.com/badges/uisits-laravel-oidc/health.svg)](https://phpackages.com/packages/uisits-laravel-oidc)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[socialiteproviders/manager

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

42747.6M583](/packages/socialiteproviders-manager)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[andrewdwallo/filament-companies

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

35156.4k2](/packages/andrewdwallo-filament-companies)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1518.6k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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