-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS:
- PHP version: 8.1
- Package name and version: google/auth v1.21.0
Steps to reproduce
- Verify a legitimate token with google/auth v1.21.0 and firebase/php-jwt 6.x (v6.1.2)
Code example
(new AccessToken())->verify(
$token,
[
'audience' => $audience,
'throwException' => true,
]
);
The AccessToken class decodes the token the '5.x way' instead of the '6.x way' (which now uses a Key class). I noticed in the PR that adds firebase/php-jwt v6 the OAuth2 class was changed, but the AccessToken class was skipped. Or is that because the AccessToken class is experimental?
zhyian
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.