Google API クライアント ID を取得する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google ログインは OAuth 2.0 フローとトークンのライフサイクルを管理し、Google API との統合を簡素化します。ユーザーはいつでもアプリへのアクセスを取り消すことができます。
Google 3P 認証ライブラリをウェブサイトに統合する前に、クライアント ID を作成する必要があります。このクライアント ID は、3P 認証 API を呼び出す際に必要になります。
Google Cloud コンソール プロジェクトとクライアント ID を作成するには、Google API クライアント ID を取得する手順に沿って操作します。
プロジェクトを構成するときに、ウェブブラウザ クライアント タイプを選択し、アプリのオリジン URI を指定します。テストを実行するときに、http://localhost
と http://localhost:<port_number>
の両方を [承認済みの JavaScript 生成元] フィールドに追加する必要があります。
構成が完了したら、作成されたクライアント ID をメモします。次の手順を完了するには、クライアント ID が必要です。(クライアント シークレットも作成されますが、これはサーバーサイド オペレーションでのみ必要です)。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-06 UTC。
[null,null,["最終更新日 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,["# Get your Google API client ID\n\nGoogle 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 Cloud console Project and Client ID, follow the\n[instructions to get your Google API client ID](https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#get_your_google_api_client_id).\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.)"]]