hbsolutions/jwt-auth

Service for JWT authentication.

dev-main 2022-01-05 17:48 UTC

This package is auto-updated.

Last update: 2024-04-05 22:54:02 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