We are trying to validate an id_token from Google in a service. I am trying to use the io.jsonwebtoken Java API (https://github.com/jwtk). Additionally the JWKS are here: https://www.googleapis.com/oauth2/v3/certs
I won't paste the JWKS here, but I understand that the "e" value is the exponent and that the "n" value is the modulus and that the "kid" is the key id to match in the payload. Also, the "alg" is the key's signing algorithm.
I can base 64 decode the header and payload, but I do not understand how to use the JWKS to validate the id_token.
This should be easy, but I cannot seem to find out how. Has anyone done this? Can I use the "io.jsonwebtoken" API to check the id_token?