Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

UnexpectedValueException: "kid" invalid, unable to lookup correct key #84

Description

@walterecook

I have the Angular sample login. Pass that id_token into PHP.
PHP has the required libraries, calls the autoload.php properly.

$jwtVerifier = ( new \Okta\JwtVerifier\JwtVerifierBuilder() )
->setAdaptor( new \Okta\JwtVerifier\Adaptors\FirebasePhpJwt() )
->setClientId( '{myClientID}' )
->setAudience('api://default')
->setIssuer( 'https://myCompany.okta.com/oauth2/default' )
->build();

$token = $jwtVerifier->verifyIdToken($jwt);

Yields this:
UnexpectedValueException: "kid" invalid, unable to lookup correct key in /vendor/firebase/php-jwt/src/JWT.php:117

I've followed several different protocols, they look simple enough and I keep coming back to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions