sop / jwx Goto Github PK
View Code? Open in Web Editor NEWA PHP library for JSON web tokens (JWT) with signature (JWS) and encryption (JWE) support.
License: MIT License
A PHP library for JSON web tokens (JWT) with signature (JWS) and encryption (JWE) support.
License: MIT License
Hi there, thanks for the great package!
Trying to instantiate a JWK X509CertificateChainParameter
throws the following error on PHP v8.0.10:
Declaration of Sop\JWX\JWK\Parameter\X509CertificateChainParameter::__construct(string ...$certs) must be compatible with Sop\JWX\Parameter\Feature\ArrayParameterValue::__construct(...$values)
I wonder if the X509 parameter's constructor definition can be changed to something like:
/**
* Constructor.
*
* @param string[] $certs Base64 encoded DER certificates
*/
public function __construct(...$certs)
{
/** @var string $cert */
foreach ($certs as $cert) {
if (!Base64::isValid($cert)) {
throw new \UnexpectedValueException(
'Certificate must be base64 encoded.');
}
}
parent::__construct(self::PARAM_X509_CERTIFICATE_CHAIN, $certs);
}
Happy to open a PR with the change :)
Hi,
I discovered a vulnerability in JWX that I would like to report. However, I can't seem to find an appropriate (private) channel to contact the maintainer for responsible disclosure.
@sop How would you like to receive this report?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.