endeavors/openjwt

There is no license information available for the latest version (dev-master) of this package.

Validate an id token. Shoud conform to ID Token Validation spec at openid.net.

dev-master 2019-11-07 00:34 UTC

This package is not auto-updated.

Last update: 2024-04-16 13:38:21 UTC


README

Inspect or verify a JSON Web Token using various methods.

Installation

This library requires the use of Composer

  • Require this package with composer composer require endeavors/openjwt

Inspecting

There are multiple ways to validate and inspect a JWT.

Inspecting without any validation:

use Endeavors\OpenJWT\Inspect;
// ...
$jwt = Inspect::jwt('yourjwt');

Inspecting validating the issuer:

use Endeavors\OpenJWT\Inspect;
// ...
$jwt = Inspect::issuer('yourjwt', 'yourissuer');