Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ejunker
Copy link
Contributor

@ejunker ejunker commented Feb 29, 2024

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.

I noticed there is a composer.lock file. It is not common to include the composer.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

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
Copy link
Member

@Jean85 Jean85 left a 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"
Copy link
Member

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

Suggested change
"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"
Copy link
Member

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

Suggested change
"web-token/jwt-library": "^2.0 || ^3.0"
"web-token/jwt-library": "^3.3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants