You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
When I ran into this issue, was because of a mismatch with the issuer. It was set to one thing in the /authorize and /token calls, but something else in the verify() call.
Hope it helps.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: