Download the PHP package ceedcv-maya/shared-auth-laravel without Composer
On this page you can find all versions of the php package ceedcv-maya/shared-auth-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ceedcv-maya/shared-auth-laravel
More information about ceedcv-maya/shared-auth-laravel
Files in ceedcv-maya/shared-auth-laravel
Package shared-auth-laravel
Short Description Keycloak/OIDC JWT authentication middleware for Laravel: JWKS caching, RequirePermissionMiddleware, AppToAppAuthenticator, configurable user resolver.
License MIT
Homepage https://github.com/Maya-AQSS/shared-auth-laravel
Informations about the package shared-auth-laravel
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
Token validation (JwtMiddleware)
A request passes only with a Keycloak access token that meets all of these:
| Check | Rule | Config |
|---|---|---|
| Signature | RS256 with the JWKS key named by the kid header (JWKS cached) |
auth.jwks_url, auth.jwks_cache_ttl |
| Issuer | iss equals the configured issuer |
auth.jwt_issuer |
| Expiry | exp is required and must be in the future (also iat/nbf when present); no clock leeway |
— |
| Token type | typ claim is exactly Bearer (Keycloak access token). ID tokens (ID), refresh tokens (Refresh, Offline) and tokens without typ are rejected |
— |
| Audience | aud contains, or azp equals, one of the comma-separated values (one per app: its own client_id) |
auth.jwt_audience (required outside testing) |
Any failure returns 401 (WWW-Authenticate: Bearer error="invalid_token") and logs JWT authentication failed: info with error_code=JWT-EXPIRED for expired tokens, warning with error_code=JWT-INVALID for everything else.
Tests that mint their own JWTs (instead of bypassing the middleware) must add the typ: Bearer and exp claims.
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.
All versions of shared-auth-laravel with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/cache Version ^11.0 || ^12.0 || ^13.0
lcobucci/jwt Version ^5.0
phpseclib/phpseclib Version ^3.0