shared-auth-laravel maintained by ceedcv-maya
Last update
2026/06/14 18:41
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/14 18:41
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/14 18:41
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/14 09:32
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/13 11:14
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/13 11:14
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/06/12 21:55
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/28 16:07
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/25 22:50
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/25 22:50
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/25 22:50
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
Last update
2026/05/25 17:32
License
Require
- php ^8.4
- illuminate/support ^11.0 || ^12.0 || ^13.0
- illuminate/http ^11.0 || ^12.0 || ^13.0
- illuminate/cache ^11.0 || ^12.0 || ^13.0
- lcobucci/jwt ^5.0
- phpseclib/phpseclib ^3.0
ceedcv-maya/shared-auth-laravel
Keycloak/OIDC JWT authentication middleware for Laravel: JWKS caching, RequirePermissionMiddleware, AppToAppAuthenticator, configurable user resolver.
Part of the ceedcv-maya/maya_platform mono-repo. Distributed independently for reuse outside the Maya ecosystem.
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
PSR-4 autoload from src/. Service providers are registered via Laravel package discovery (no manual provider registration needed).
License
MIT — see LICENSE.
Reporting issues
The canonical source lives in Maya-AQSS/maya_platform. File issues there; this read-only split repo is only the published artifact.