Bearer/JWT resource-server authentication (JWS verification, JWKS, RFC 9068 client-type resolution) for Quiote, built on firebase/php-jwt.

Maintainers

Package info

github.com/quioteframework/auth-jwt

Issues

pkg:composer/quioteframework/auth-jwt

Transparency log

Statistics

Installs: 10

Dependents: 2

Suggesters: 1

Stars: 0

v3.1.0 2026-07-29 21:45 UTC

This package is auto-updated.

Last update: 2026-07-29 22:10:12 UTC


README

Bearer/JWT resource-server authentication for Quiote, built on firebase/php-jwt. Verifies a JWS (shared HS256 secret, or RS256/ES256 via a JWKS-backed CachedKeySet), enforces iss/aud, and derives human-vs-machine client type per RFC 9068. Requires quioteframework/auth for the shared AuthenticatorInterface/Passport/UserProviderInterface contracts.

Install

composer require quioteframework/auth-jwt

Enable

Register Quiote\Security\Auth\JwtAuthPlugin (registers the default ClientTypeResolverInterface). TokenValidatorInterface/BearerTokenAuthenticator need app-specific secrets (issuer, audience, JWKS URI or shared key), so construct and register those yourself — typically alongside a FirewallMap built with quioteframework/auth's FirewallFactory.

License

MIT. See LICENSE.