-
Notifications
You must be signed in to change notification settings - Fork 301
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
Replace spomky-labs/base64url
with paragonie/constant_time_encoding
#397
Conversation
composer.json
Outdated
@@ -34,8 +34,7 @@ | |||
"ext-mbstring": "*", | |||
"ext-openssl": "*", | |||
"guzzlehttp/guzzle": "^7.4.5", | |||
"web-token/jwt-library": "^3.3.0", | |||
"spomky-labs/base64url": "^2.0.4" | |||
"web-token/jwt-library": "^3.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.
Is it best practive nowadays in PHP to use sub dependencies in the project? Shouldn't the dependency be added as a direct dependency so that if jw-library removes paragonie/constant_time_encoding on a minor/patch version, the project still works?
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.
You are right, I forgot to add that.
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.
Thanks
Hi @Minishlink, the latest release is more than one year old. Is it possible to make a new one, please 🙏. |
Hello, yep it is planned as soon as #394 lands :) That PR is a breaking change so I would prefer avoiding two breaking change releases in a row (in addition of dropping PHP 8.0 support). |
@Minishlink @Cyperghost replacing spomky-labs/base64url library was a mistake IMHO. Let me explain why.
Please reconsider this change. Return old library or may be use libsodium https://www.php.net/manual/en/book.sodium.php |
Hello, thanks for your feedback. Can you send a PR that adds a test for your use case please? (which should fail on master) Can you stick with v8 in the meantime? |
Hi, |
Thank you |
Reverted in v9.0.0-rc2 |
The composer package
paragonie/constant_time_encoding
is already provided byweb-token/jwt-library
and gives a better security.