Skip to content

AccessToken class incompatible with firebase/php-jwt 6.x #399

@marickvantuil

Description

@marickvantuil

Environment details

  • OS:
  • PHP version: 8.1
  • Package name and version: google/auth v1.21.0

Steps to reproduce

  1. 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?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p1Important 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions