Skip to content

Absurdly simple jwt decoder/verifier using .well-known service discovery oauth/openid spec.

Notifications You must be signed in to change notification settings

jerryhopper/easy-jwt-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

easy-jwt-php

Absurdly simple jwt decoder/verifier using .well-known service discovery oauth/openid spec.

.

Installation

composer require jerryhopper/service-discovery-php

.

Usage

$token = the obtained JWT token.

$discoveryUrl = the location of the openid discovery information.

(Example: https://fusionauth:9011/.well-known/openid-configuration )

use JerryHopper\EasyJwt;

$jwtPayloadData = new Decode($token,$discoveryUrl);

The result is either a Exception, or the decoded JWT object.

.

Advanced usage

$issuer = false; // Issuer check. False or String.

$audience = false; // Audience check. False or String.

use JerryHopper\EasyJwt;

$jwtPayloadData = new Decode($token,$discoveryUrl,$audience,$issuer);

.

This library is for PHP7.2 ++

About

Absurdly simple jwt decoder/verifier using .well-known service discovery oauth/openid spec.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages