Récupère les clés publiques de l'ancien signataire de jeton Identity Toolkit pour permettre aux tiers de valider l'ancien jeton d'ID. Pour le moment, le certificat PEM X509 est le seul format accepté.
Requête HTTP
GET https://identitytoolkit.googleapis.com/v1/publicKeys
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/03/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/03/04 (UTC)."],[[["\u003cp\u003eThis API endpoint retrieves public keys used for verifying legacy Identity Toolkit tokens, currently supporting the X509 PEM certificate format.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to access these keys is a \u003ccode\u003eGET\u003c/code\u003e request to \u003ccode\u003ehttps://identitytoolkit.googleapis.com/v1/publicKeys\u003c/code\u003e, with a URL that uses gRPC Transcoding.\u003c/p\u003e\n"],["\u003cp\u003eNo request body is required, as the request must be empty.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns a body containing a Struct.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: getPublicKeys\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves public keys of the legacy Identity Toolkit token signer to enable third parties to verify the legacy ID token. For now the X509 pem cert is the only format supported.\n\n### HTTP request\n\n`GET https://identitytoolkit.googleapis.com/v1/publicKeys`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Struct](https://protobuf.dev/reference/protobuf/google.protobuf/#struct).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]