Оптимизируйте свои подборки Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Google Sign-In управляет процессом авторизации OAuth 2.0 и жизненным циклом токена, упрощая интеграцию с API Google. Пользователь всегда может отозвать доступ к приложению в любое время.
Прежде чем интегрировать библиотеку авторизации Google 3P на свой веб-сайт, необходимо создать идентификатор клиента, который необходимо вызвать API авторизации 3P.
При настройке проекта выберите тип клиента «Веб-браузер» и укажите URI источника вашего приложения. При выполнении тестов необходимо добавить в поле «Авторизованные источники JavaScript» оба http://localhost и http://localhost:<port_number> .
После завершения настройки запишите созданный идентификатор клиента. Он понадобится вам для выполнения следующих шагов. (Также создаётся секретный ключ клиента, но он нужен только для операций на стороне сервера.)
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-08-06 UTC."],[[["\u003cp\u003eGoogle Sign-In streamlines the use of Google APIs by managing the OAuth 2.0 flow and token lifecycle, allowing users to revoke access at any time.\u003c/p\u003e\n"],["\u003cp\u003eBefore integrating Google 3P Authorization, you need to create a client ID within a Google API Console project, specifying the Web browser client type and authorized origins including localhost for testing.\u003c/p\u003e\n"],["\u003cp\u003eAfter project configuration, note the generated client ID, which is essential for subsequent integration steps.\u003c/p\u003e\n"]]],[],null,["Google Sign-In manages the OAuth 2.0 flow and token lifecycle, simplifying your\nintegration with Google APIs. A user always has the option to [revoke access](https://myaccount.google.com/permissions)\nto an application at any time.\n\nBefore you can integrate Google 3P Authorization library into your website, you\nmust create a client ID, which you need to call the 3P Authorization API.\n\nTo create a Google API Console project and client ID, click the following\nbutton:\n\nConfigure a project\n\nWhen you configure the project, select the Web browser client type and specify\nthe origin URI of your app. When you perform tests, both `http://localhost` and\n`http://localhost:\u003cport_number\u003e` must be added to the Authorized JavaScript\norigins field.\n\nAfter configuration is complete, take note of the client ID that was created.\nYou will need the client ID to complete the next steps. (A client secret is also\ncreated, but you need it only for server-side operations.)"]]