Req #80382 [NEW]: è¿åå¼é®é¢
| From: | 982144218 at qq dot com | Date: | Thu, 19 Nov 2020 10:21:18 +0000 |
| Subject: | Req #80382 [NEW]: è¿åå¼é®é¢ | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-230453@lists.php.net to get a copy of this message | ||
From: 982144218 at qq dot com
Operating system: Win 10
PHP version: 7.2.34
Package: *Programming Data Structures
Bug Type: Feature/Change Request
Bug description:è¿åå¼é®é¢
Description:
------------
public static function decodeIdentityToken(string $identityToken) :
object {
$publicKeyKid = JWT::getPublicKeyKid($identityToken);
$publicKeyData = self::fetchPublicKey($publicKeyKid);
$publicKey = $publicKeyData['publicKey'];
$alg = $publicKeyData['alg'];
$payload = JWT::decode($identityToken, $publicKey, [$alg]);
return $payload;
}
Test script:
---------------
å¨7.1.9çæ¬ä¸returnæ æ³è¿åobject(stdClass)ç±»åï¼å¨7.3.9çæ¬ä¸å¯ä»¥ä½¿ç¨
--
Edit bug report at https://bugs.php.net/bug.php?id=80382&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80382&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80382&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80382&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80382&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80382&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80382&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80382&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80382&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80382&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80382&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80382&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80382&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80382&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80382&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80382&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80382&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80382&r=mysqlcfg