Conversation
|
Actually, the code should be the following, for compatibility with both 3.4.x and 4.x: $config = Configuration::forSymmetricSigner(
new Sha256(),
LocalFileReference::file('path/to/integration.private-key.pem')
);
$jwt = $config->builder()
->issuedBy($integrationId)
->issuedAt(time())
->expiresAt(time() + 60)
->getToken($config->signer(), $config->signingKey()));
$github->authenticate($jwt, null, Github\Client::AUTH_JWT) |
|
with the following imports at the top: use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\Signer\Key\LocalFileReference;
use Lcobucci\JWT\Signer\Rsa\Sha256;in place of the other |
Update "integrating with app" example to use lcobucci/jwt 3.4 Fix whitespace formatting update example for compatibility with both 3.4.x and 4.x
|
Closing this PR because I don't know why CI is failing (I did update the head branch with the most recent version of the base) and tbh I've lost interest in figuring it out. |
|
@amacrobert-meq Sorry I've lost track of this PR, the failing check can be ignored as it is unrelated. So I think we can re-open this PR and have it ready to be merged! |
|
@acrobat Ok, in that case I'm reopening |
acrobat
left a comment
There was a problem hiding this comment.
The PR looks good! I've only added 1 change to avoid triggering deprecations otherwise good to merge!
…integration-doc-update * upstream/2.x: Correctly link to github actions docs and fix backlinks Improved bc check bug #979 Deployments: use proper media-type for in_progress/queued, inactive state (staabm)
acrobat
left a comment
There was a problem hiding this comment.
I've pushed the requested changes, all good now.
|
Thanks @amacrobert-meq! And congrats on your first contribution! 🎉 |
* 2.x: bug #953 [952] doc - Specify lcobucci/jwt version, fix deprecation (amacrobert-meq, acrobat)
Fixes #952