hbsolutions / jwt-auth
Service for JWT authentication.
Installs: 575
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hbsolutions/jwt-auth
Requires
- php: ^7.3
- firebase/php-jwt: 9999999-dev
- hbsolutions/php-helpers: 9999999-dev
- psr/http-factory: 1.0.x-dev
- psr/http-message: 1.0.x-dev
- psr/http-server-handler: 1.0.x-dev
- psr/http-server-middleware: 1.0.x-dev
- psr/log: ^1.0.1
This package is auto-updated.
Last update: 2025-10-06 02:03:30 UTC
README
Service for JWT authentication.
Installation
composer require hbsolutions/jwt-auth
Usage
Namespace: HBS\JwtAuth
JWT Authentication
Service class name: HBS\JwtAuth\Service\Jwt
Needs to inject into constructor:
| Object | Type (instance of) |
|---|---|
| Logger | Psr\Log\LoggerInterface |
| Settings | HBS\JwtAuth\Immutable\Settings |
Throws HBS\JwtAuth\Exception\AuthenticationException – child of the \RuntimeException.
Web Authorization
Service class name: HBS\JwtAuth\Service\WebAuthorization
Needs to inject into constructor:
| Object | Type (instance of) |
|---|---|
| Logger | Psr\Log\LoggerInterface |
| JWT Service | HBS\JwtAuth\Service\Jwt |
| Authorization Service | HBS\JwtAuth\Service\AuthorizationServiceInterface |