Download the PHP package danielburger1337/openid-hash without Composer
On this page you can find all versions of the php package danielburger1337/openid-hash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danielburger1337/openid-hash
More information about danielburger1337/openid-hash
Files in danielburger1337/openid-hash
Package openid-hash
Short Description Create/Verify OpenID Connect (OIDC) verification hashes.
License MIT
Homepage https://github.com/danielburger1337/openid-hash-php
Informations about the package openid-hash
openid-hash
Create and/or verify OpenID Connect 1.0 ID Token hashes (at_hash, c_hash, s_hash).
This library is PSR-4 compatible and can be installed via PHP's dependency manager Composer.
This library requires a 64-bit version of PHP.
How To Use
The constructor takes two arguments. The first argument is the JWA algorithm the ID Token is signed with. This value can usally be found in the alg header parameter of the ID Token.
The second argument is only required when the ID Token is signed with the EdDSA algorithm. This argument must then contain the crv of the JWK that was used to sign the ID Token. This value can usually be found in the crv header parameter of the ID Token or in the jwks_uri document of the OP.
To verify a hash, you can use the verify*Hash methods:
To create a verification hash, you can use the create*Hash methods:
All versions of openid-hash with dependencies
danielburger1337/sha3-shake Version ^1.0
spomky-labs/base64url Version ^2.0