PHPackages                             ceedcv-maya/shared-auth-laravel - 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. ceedcv-maya/shared-auth-laravel

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

ceedcv-maya/shared-auth-laravel
===============================

Keycloak/OIDC JWT authentication middleware for Laravel: JWKS caching, RequirePermissionMiddleware, AppToAppAuthenticator, configurable user resolver.

v0.5.3(1w ago)0374↑774.3%MITPHPPHP ^8.4

Since May 25Pushed 6d agoCompare

[ Source](https://github.com/Maya-AQSS/shared-auth-laravel)[ Packagist](https://packagist.org/packages/ceedcv-maya/shared-auth-laravel)[ Docs](https://github.com/Maya-AQSS/shared-auth-laravel)[ RSS](/packages/ceedcv-maya-shared-auth-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (9)Versions (10)Used By (0)

ceedcv-maya/shared-auth-laravel
===============================

[](#ceedcv-mayashared-auth-laravel)

Keycloak/OIDC JWT authentication middleware for Laravel: JWKS caching, RequirePermissionMiddleware, AppToAppAuthenticator, configurable user resolver.

Part of the [ceedcv-maya/maya\_platform](https://github.com/Maya-AQSS/maya_platform) mono-repo. Distributed independently for reuse outside the Maya ecosystem.

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

[](#installation)

```
composer require ceedcv-maya/shared-auth-laravel
```

```
// routes/api.php
use Maya\Auth\Middleware\AuthenticateJwt;
use Maya\Auth\Middleware\RequirePermission;

Route::middleware([AuthenticateJwt::class, RequirePermission::class.':users.read'])->group(function () {
    Route::get('/me', fn () => auth()->user());
});
```

```
KEYCLOAK_URL=https://keycloak.example.org
KEYCLOAK_REALM=my-realm
KEYCLOAK_CLIENT_ID=my-app
```

TypeScript / build notes
------------------------

[](#typescript--build-notes)

PSR-4 autoload from `src/`. Service providers are registered via Laravel package discovery (no manual provider registration needed).

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

Reporting issues
----------------

[](#reporting-issues)

The canonical source lives in [Maya-AQSS/maya\_platform](https://github.com/Maya-AQSS/maya_platform). File issues there; this read-only split repo is only the published artifact.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance98

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

9

Last Release

12d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ee6f9d4827e5bc99f207850bcdf2697b65c01719e66fa4ea66d443046cbbb3e?d=identicon)[GGEdu](/maintainers/GGEdu)

---

Tags

jwtmiddlewarelaravelAuthenticationMayaauthorizationkeycloakoidcJWKSceedcv

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ceedcv-maya-shared-auth-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ceedcv-maya-shared-auth-laravel/health.svg)](https://phpackages.com/packages/ceedcv-maya-shared-auth-laravel)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k50.9M364](/packages/tymon-jwt-auth)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

83910.6M60](/packages/php-open-source-saver-jwt-auth)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2795.2M3](/packages/auth0-login)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)

PHPackages © 2026

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