> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth Apps

> クライアントインテグレーション向けにカスタム OAuth アプリケーションを生成します。

**OAuth Apps** タブでは、クライアントインテグレーション向けにカスタム OAuth アプリケーションを生成できます。利用可能な OAuth アプリの一覧（アプリケーションタイプと作成日を含む）が表示されます。

<Frame>
  <img src="https://mintcdn.com/cdata/7U6JP2GPIO7AtUMd/ja/images/settings_oauth.png?fit=max&auto=format&n=7U6JP2GPIO7AtUMd&q=85&s=b6ab3737bd28d90d1e1fb9ef778e7edf" alt="Settings OAuth" width="1438" height="220" data-path="ja/images/settings_oauth.png" />
</Frame>

## カスタム OAuth アプリケーションの作成

カスタム OAuth アプリケーションを作成するには：

<Steps>
  <Step>
    **+ Create App** をクリックします。**Create OAuth App** ダイアログが表示されます。

    <Frame>
      <img src="https://mintcdn.com/cdata/UXUdfU-EW0aTfeQ1/ja/images/settings_oauth_create.png?fit=max&auto=format&n=UXUdfU-EW0aTfeQ1&q=85&s=567945a991f8a5e24b20f90a2b4bba3b" alt="Create OAuth App" width="801" height="652" data-path="ja/images/settings_oauth_create.png" />
    </Frame>
  </Step>

  <Step>
    OAuth アプリの**Name** を入力します。
  </Step>

  <Step>
    OAuth アプリケーションの **Application Type** を選択します。

    <Note>サービスや自動化されたアプリケーションには、代わりに [Service Accounts](/ja/Service-Accounts) を使用してください。</Note>

    * **Web Application**–クライアントシークレットを使用する Authorization Code グラントのサーバーサイドアプリ向けです。クライアントシークレットが必要です。
    * **Single Page App**–ブラウザベースの Authorization Code + PKCE グラント向けです。クライアントシークレットは不要です。
    * **CLI/Local Agent**–コマンドラインツール向けです。クライアントシークレットは不要です。
  </Step>

  <Step>
    クライアントアプリケーションに移動し、新しいアプリケーションを登録します。クライアントアプリケーションがコールバック URL を提供します。
  </Step>

  <Step>
    Connect AI の **Create OAuth App** ダイアログに戻り、クライアントアプリケーションの **Callback URL** を貼り付けます。この URL はログイン後にユーザーをリダイレクトします。OAuth アプリには最大 10 個のコールバック URL を設定できます。
  </Step>

  <Step>
    **Confirm** をクリックします。Connect AI がOAuth アプリを作成し、クライアントアプリケーション用の**Client Id** と**Client Secret** を生成します。これらの値をコピーします。

    <Frame>
      <img src="https://mintcdn.com/cdata/7U6JP2GPIO7AtUMd/ja/images/settings_oauth_clientidsecret.png?fit=max&auto=format&n=7U6JP2GPIO7AtUMd&q=85&s=9e449ff0644faeefdd59fb2a0406142d" alt="OAuth App Client Id and Secret" width="1460" height="534" data-path="ja/images/settings_oauth_clientidsecret.png" />
    </Frame>
  </Step>

  <Step>
    クライアントアプリケーションに戻り、**Client Id** と **Client Secret** を該当するフィールドに貼り付けます。例えば、Gemini Enterprise の場合：

    <Frame>
      <img src="https://mintcdn.com/cdata/y8T8oeR7wGFHv0aC/ja/images/gemini_enterprise_datastore_auth.png?fit=max&auto=format&n=y8T8oeR7wGFHv0aC&q=85&s=e6e636973768ac586ac1b73ef7824b9e" alt="Client Id and Client Secret" width="3024" height="1724" data-path="ja/images/gemini_enterprise_datastore_auth.png" />
    </Frame>
  </Step>

  <Step>
    新しいOAuth アプリがアプリ一覧に表示されます。必要に応じて、編集アイコン（<Icon icon="pencil" />）をクリックしてアプリを編集し、他のクライアントアプリケーション用のコールバックURLを追加できます。
  </Step>
</Steps>

ご利用の外部システムから、 CData の認証、トークン、および登録URLに関する情報を求められる場合があります。それらは以下のとおりです：

| エンドポイント                       | 値                                                                                      |
| :---------------------------- | :------------------------------------------------------------------------------------- |
| **Authorization URL**         | [https://cloud-login.cdata.com/authorize](https://cloud-login.cdata.com/authorize)     |
| **Token URL**                 | [https://cloud-login.cdata.com/oauth/token](https://cloud-login.cdata.com/oauth/token) |
| **Registration URL**          | [https://mcp.cloud.cdata.com/register](https://mcp.cloud.cdata.com/register)           |
| **Authorization server base** | [https://mcp.cloud.cdata.com](https://mcp.cloud.cdata.com)                             |
| **Resource**                  | [https://mcp.cloud.cdata.com/mcp](https://mcp.cloud.cdata.com/mcp)                     |
