File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1313 "kint-php/kint" : " ^3.3" ,
1414 "symfony/yaml" : " ^2.8" ,
1515 "paragonie/random_compat" : " ^2" ,
16- "firebase/php-jwt" : " ^5 .0" ,
16+ "firebase/php-jwt" : " 6.0 .0" ,
1717 "webmozart/assert" : " 1.9.1"
1818 },
1919 "require-dev" : {
Original file line number Diff line number Diff line change 1212namespace Xmf \Jwt ;
1313
1414use Firebase \JWT \JWT ;
15+ use Firebase \JWT \Key ;
1516use Xmf \Key \KeyAbstract ;
1617
1718/**
2021 * @category Xmf\Jwt\JsonWebToken
2122 * @package Xmf
2223 * @author Richard Griffith <richard@geekwright.com>
23- * @copyright 2018 XOOPS Project (https://xoops.org)
24+ * @copyright 2018-2023 XOOPS Project (https://xoops.org)
2425 * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2526 * @link https://xoops.org
2627 */
@@ -80,9 +81,8 @@ public function setAlgorithm($algorithm)
8081 */
8182 public function decode ($ jwtString , $ assertClaims = array ())
8283 {
83- $ allowedAlgorithms = array ($ this ->algorithm );
8484 try {
85- $ values = JWT ::decode ($ jwtString , $ this ->key ->getVerifying (), $ allowedAlgorithms );
85+ $ values = JWT ::decode ($ jwtString , new Key ( $ this ->key ->getVerifying (), $ this -> algorithm ) );
8686 } catch (\Exception $ e ) {
8787 trigger_error ($ e ->getMessage (), E_USER_NOTICE );
8888 return false ;
Original file line number Diff line number Diff line change 1414use Xmf \Random ;
1515
1616/**
17- * Xmf\Key\StorageInterface
17+ * Xmf\Key\Basic
1818 *
19- * load a database table
19+ * a basic general purpose key
2020 *
2121 * @category Xmf\Key\Basic
2222 * @package Xmf
2323 * @author Richard Griffith <richard@geekwright.com>
24- * @copyright 2018 XOOPS Project (https://xoops.org)
24+ * @copyright 2018-2023 XOOPS Project (https://xoops.org)
2525 * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2626 * @link https://xoops.org
2727 */
Original file line number Diff line number Diff line change 1212namespace Xmf \Key ;
1313
1414/**
15- * Xmf\Key\StorageInterface
15+ * Xmf\Key\KeyAbstract
1616 *
17- * load a database table
17+ * manage key and related storage
1818 *
1919 * @category Xmf\Key\KeyAbstract
2020 * @package Xmf
You can’t perform that action at this time.
0 commit comments