http.oidc.verify_id_token

http.oidc

verify_id_token(self, id_token, nonce) -> claims, err

Verify an ID token and return its claims

jose.jwt.verify against the cached JWKS with the configured allowlist, the issuer as iss, the client id as aud, exp, iat and sub required and the configured leeway. On the exact error unknown kid the JWKS is fetched again and the token tried once more, unless the last fetch is younger than a minute: then the error stands. After the signature: nonce must equal the token's, and azp, when present, must be the client id (OIDC Core §3.1.3.7). Runs discover.