Download the PHP package facile-it/php-jose-verifier without Composer

On this page you can find all versions of the php package facile-it/php-jose-verifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-jose-verifier

Facile JOSE Verifier

A library to validate JWT tokens.

Build Status codecov Latest Stable Version Total Downloads Latest Unstable Version License

How To Use

The suggested and simply way to use it (specially for OAuth2 and OpenID tokens) is using builders.

For better performance you should install ext-gmp.

Create verifiers from Issuer and Client Metadata

Usually an OpenID provider provides an openid-configuration (/.well-known/openid-configuration).

You can fetch the configuration and use it with builders, but usually only issuer and jwks_uri are necessary.

The remote jwks_uri is the remote endpoint where the issuer public keys are exposed.

You also need the Client Metadata, usually the same provided from the OpenID Dynamic Registration but you can just provide the client_id and optionally the client_secret (in case the tokens are signed with symmetric key using the client secret).

Verfiers and decrypters are automatically configured using the OpenID Dynamic Registration client metadata.

If you use encryption, you should inject your JWK Set in the configuration jwks keys.

The verifier will decrypt and validate the token for you. The result is the token payload.

Using cache to fetch remote JWK Set

Obviously you should not fetch the remote JWK Set on every request. In order to use cache you can inject a partially configured JwksProviderBuilder.

Provided verifiers

Access Token Verifier

The AccessTokenVerifier will validate a JWT access token.

ID Token Verifier

The IdTokenVerifier will validate an OpenID id_token.

Create the verifier:

In order to validate an id_token you must provide some other parameters to the verifier (note that all verifiers are immutable).

UserInfo Verifier

When UserInfo returns a signed (and maybe encrypted) JWT as response content of the userinfo endpoint you can use this verifier to decrypt, verify, and obtain user info claims.


All versions of php-jose-verifier with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ext-json Version *
php-http/discovery Version ^1.7
psr/clock Version ^1.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || 2.0
psr/simple-cache Version ^1.0 || ^2.0 || ^3.0
spomky-labs/base64url Version ^2.0.1
symfony/polyfill-mbstring Version ^1.15
web-token/jwt-checker Version ^2.2.0 || ^3.0
web-token/jwt-core Version ^2.2.0 || ^3.0
web-token/jwt-key-mgmt Version ^2.2.0 || ^3.0
web-token/jwt-signature Version ^2.2.0 || ^3.0
web-token/jwt-signature-algorithm-rsa Version ^2.2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package facile-it/php-jose-verifier contains the following files

Loading the files please wait ....