Commit graph

4 commits

Author SHA1 Message Date
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)