-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update abandoned web-token dependencies #37
base: master
Are you sure you want to change the base?
Conversation
Fix warning about abandoned packages by replacing them with web-token/jwt-library Package web-token/jwt-checker is abandoned, you should avoid using it. Use web-token/jwt-library instead. Package web-token/jwt-core is abandoned, you should avoid using it. Use web-token/jwt-library instead. Package web-token/jwt-encryption is abandoned, you should avoid using it. Use web-token/jwt-library instead. Package web-token/jwt-key-mgmt is abandoned, you should avoid using it. Use web-token/jwt-library instead. Package web-token/jwt-signature is abandoned, you should avoid using it. Use web-token/jwt-library instead. Package web-token/jwt-signature-algorithm-rsa is abandoned, you should avoid using it. Use web-token/jwt-library instead. require PHP 8.1 or higher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same review as facile-it/php-jose-verifier#14
We need to decide if and how we want to proceed with this.
"web-token/jwt-signature-algorithm-experimental": "^2.0 || ^3.0", | ||
"web-token/jwt-signature-algorithm-hmac": "^2.0 || ^3.0", | ||
"web-token/jwt-signature-algorithm-none": "^2.0 || ^3.0" | ||
"web-token/jwt-library": "^2.0 || ^3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicating the dependency doesn't make sense
"web-token/jwt-library": "^2.0 || ^3.0" |
"web-token/jwt-key-mgmt": "^2.0.7 || ^3.0", | ||
"web-token/jwt-signature": "^2.0 || ^3.0", | ||
"web-token/jwt-signature-algorithm-rsa": "^2.0 || ^3.0" | ||
"web-token/jwt-library": "^2.0 || ^3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make sense, this package exists only since 3.3: https://packagist.org/packages/web-token/jwt-library
"web-token/jwt-library": "^2.0 || ^3.0" | |
"web-token/jwt-library": "^3.3" |
Fix warning about abandoned packages by replacing them with
web-token/jwt-library
I noticed there is a
composer.lock
file. It is not common to include thecomposer.lock
for libraries. It should probably be removed and added to.gitignore
I think after that the tests would pass.I now see that
web-token/jwt-library[3.3.0, ..., 3.3.1] require php >=8.1
so you might need to release a new version that dropped support for PHP 7.4 and 8.0