web-token/jwt-framework

jwt-signature-algorithm-eddsa not working

Thomasmass opened this issue · 2 comments

Version(s) affected

f447d5f

Description

Hello,
I can't get JWT signature algorithm EdDSA to work.
The operation of the class and the installation are not very clear.
I managed to install the basic prerequisites but I get the error "Uncaught Error: Interface "Jose\Component\Signature\Algorithm\SignatureAlgorithm" not found".
Best regards,

How to reproduce

$signature = (new EdDSA())->sign($privatekey, $base64Header . '.' . $base64Payload);

Possible Solution

install Jose

Additional Context

Windows 11, PhpStorm, PHP 8.0

fixed with different composer install than tutorial
{
"require": {
"phpseclib/phpseclib": "^3.0",
"lcobucci/jwt": "^5.1",
"web-token/jwt-framework": "^3.2",
"web-token/jwt-signature-algorithm-eddsa": "",
"gree/jose": "^2.2",
"adhocore/jwt": "^1.1",
"firebase/php-jwt": "^6.9",
"auth0/login": "^7.11",
"nyholm/psr7": "^1.8",
"web-token/jwt-util-ecc": "
",
"rbdwllr/reallysimplejwt": "^5.0",
"ext-sodium": "",
"web-token/jwt-key-mgmt": "
",
"web-token/jwt-signature": "",
"web-token/jwt-signature-algorithm-experimental": "
",
"jose/jose": "^5.0"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.