[docs]deffetch_jwks(jwks_uri:str)->List[JWK]:""" Fetch JSON web keys from the given jwks_uri. This uri is part of the provider configuration and used to validate responses and tokens sent by the provider. :raises OpenidProtocolError: If fetching the keys fails """bundle=KeyBundle(source=jwks_uri)keys=cast(List[JWK],bundle.keys())ifnotkeys:raiseOpenidProtocolError("Failed to fetch keys")returnkeys