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
fix(jwks): filter unsupported key types before returning from fixJwksAlg
When an OIDC provider's JWKS endpoint returns keys with key types that
Firebase JWT cannot parse (e.g. EC P-521, certain OKP subtypes),
JWK::parseKeySet() throws a DomainException instead of skipping them.
fixJwksAlg() already identifies the matching key by type, but returns
the entire JWKS including incompatible keys. This causes a crash in
parseKeySet() on the first unsupported key it encounters.
Filter the JWKS to only include keys matching the expected kty before
returning, so parseKeySet() never sees unsupported key types.
Fixes#823
See googleapis/php-jwt#561
Signed-off-by: Strobel Pierre <strobelpierre@gmail.com>
0 commit comments