Commit graph

6 commits

Author SHA1 Message Date
92ed01adc5
fix(jwt): log decode errors for better debugging
Some checks failed
ci / ci (push) Failing after 0s
Added error logging to capture JWT decode exceptions, aiding in pinpointing issues during authentication. This change improves troubleshooting and enhances the overall robustness of the JWT handling process.
2024-06-25 19:37:22 +02:00
5ae53cfc14
fix: update JWT decode method to use Key object
Some checks failed
ci / ci (push) Failing after 0s
Modified the JWT::decode method to use the Key object for decoding JWTs. This enhances security by explicitly specifying the algorithm used (HS256) and aligns with recent updates in the Firebase JWT library.
2024-06-25 19:33:02 +02:00
828af94032
fix(jwt): specify algorithm in encode and remove in decode
Some checks failed
ci / ci (push) Failing after 0s
Updated JWT::encode to explicitly use the HS256 algorithm for greater security. Removed redundant algorithm specification in JWT::decode for improved consistency and simplicity. This ensures the JWT operations follow expected standards and enhances maintainability.
2024-06-25 19:23:13 +02:00
863cb55ee3
fix: correct path to autoload file using __DIR__ constant
Some checks failed
ci / ci (push) Failing after 0s
Switched from relative path to using __DIR__ constant for requiring vendor/autoload.php. This ensures correct file inclusion regardless of the script's execution context, preventing potential loading issues.
2024-06-25 18:10:19 +02:00
9f7053ae3d
feat: integrate Firebase PHP-JWT library
Some checks failed
ci / ci (push) Failing after 0s
Added composer configuration files to manage dependencies. Installed and configured the Firebase PHP-JWT library to handle JWT encoding and decoding. This enhancement aims to streamline JWT operations within the project.

Also updated .gitignore to exclude Composer artifacts.
2024-06-25 18:04:16 +02:00
9a87e9a496
refactor(auth): rename auth_userkey to auth_jwt
Some checks failed
ci / ci (push) Failing after 0s
Rebranded the auth_userkey plugin to auth_jwt, including changes to namespace, class names, and configuration settings to reflect the new jwt-based authentication mechanism. Updated copyright notices and contact information accordingly. This refactoring also includes the introduction of JWT token management using the Firebase JWT library, replacing the user quick keys.
2024-06-25 12:00:04 +02:00
Renamed from classes/core_userkey_manager.php (Browse further)