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

# 設定 OAuth 應用程式

在你建立新的應用程式小工具之後，你需要設定 OAuth，以便小工具能向使用者取得必要的許可。請依照下列步驟操作。

* **從開發者控制台前往「Your apps」**
* **選取要設定的應用程式**

<img src="https://storage.googleapis.com/fluz-fluz-file-uploads-prod-ricuyxowbwlfprel/documentation/Screenshot%202025-11-05%20at%202.02.46%E2%80%AFPM.png" alt="configure" width="300" />

* **檢查 Overview 分頁是否正確**
  * 新增頭像
* **檢視 Permissions**
  * 這是使用者需同意授權的個別範圍清單。

<img src="https://storage.googleapis.com/fluz-fluz-file-uploads-prod-ricuyxowbwlfprel/documentation/Screenshot%202025-11-05%20at%202.03.06%E2%80%AFPM.png" alt="scopes configuration" width="400" class="border" />

* 與其逐一列出每個授權範圍讓使用者核准，在此頁面勾選的所有範圍會被歸類到最上層標題之下，並以個別標題呈現給使用者。若某個範圍未被勾選，則也不會出現在使用者最終要同意的內容中。

<img src="https://storage.googleapis.com/fluz-fluz-file-uploads-prod-ricuyxowbwlfprel/documentation/Screenshot%202025-11-05%20at%202.04.44%E2%80%AFPM.png" alt="scopes presentation" width="400" class="border" />

* **在 OAuth 底下提供以下設定：**
  * **Redirect URIs** - 供我們的授權伺服器在 OAuth authorization code 流程中重新導向的公開 URL。請勿在此 URL 中包含任何查詢參數。你可以提供任意數量的這些 URI。若你使用 OAuth 流程產生 authorization code，在交換該 code 時必須使用相同的 callback URI。

<img src="https://storage.googleapis.com/fluz-fluz-file-uploads-prod-ricuyxowbwlfprel/documentation/Screenshot%202025-11-05%20at%202.03.18%E2%80%AFPM.png" alt="redirect URIs" width="400" />
