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

# 雙重要素驗證

> 在您的裝置上配對驗證器應用程式以啟用雙重要素登入驗證，為您的 PlayFab Game Manager 帳戶增加一層額外的安全性。

雙重要素驗證可讓您在驗證程序中多加一個步驟，以強化您 PlayFab Game Manager 帳戶的安全性。

其做法是在驗證程序中加入裝置要素，只有在您持有專為此目的註冊的特定裝置時，才允許您進行驗證。

## 設定雙重要素驗證

在您的裝置上安裝 **雙重要素驗證** 應用程式。您可以自行搜尋應用程式，或從下列清單中選取您的平台：

* [iPhone、iPad 和 iPod Touch](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)
* [Android 手機或平板電腦](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)
* [Windows 手機或平板電腦](https://www.windowsphone.com/store/app/authenticator/e7994dbc-2336-4950-91ba-ca22d653759b)

所有平台上的步驟基本上都很類似。此範例顯示以 Android 為基礎的裝置和 Google Authenticator 應用程式。

下載應用程式之後：

* 開啟應用程式並依照指示操作。
* 選取 **開始** 按鈕 **(1)**。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-begin.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=a7c71f915f0f800a6bebd30167ee6df1" alt="Google - 兩步驟驗證 - 開始" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-begin.png" />

如果應用程式有教學課程，請完成該教學課程 **(1)**。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-info-screen.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=770edfba65b1b677acc7096643b722ee" alt="Google - 兩步驟驗證 - 資訊畫面" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-info-screen.png" />

* 然後選取下列兩個選項之一來新增您的 PlayFab 帳戶：

* 掃描 **條碼 (1)**。

* 或手動輸入 **金鑰** **(2)**。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-add-account.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=2a697a05f0766ca2ab04229217d0d5b9" alt="Google - 兩步驟驗證 - 新增帳戶" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-add-account.png" />

無論您選擇哪個選項，接著請前往 PlayFab 網站並瀏覽至 **Game Manager**。在 **儀表板** 索引標籤上：

* 選取 **帳戶** 面板 **(1)**。
* 然後選取 **我的設定檔 (2)**。

<img src="https://mintcdn.com/microsoft-4404708b/fZvLNnT4WAs1io9f/images/playfab/identity/dev-identity/authentication/game-manager-dashboard-open-my-profile.webp?fit=max&auto=format&n=fZvLNnT4WAs1io9f&q=85&s=5300ee6ce6ed9994ea5d8ff7e0b114f5" alt="Game Manager - 儀表板 - 開啟我的設定檔" width="1008" height="720" data-path="images/playfab/identity/dev-identity/authentication/game-manager-dashboard-open-my-profile.webp" />

**帳戶** 設定隨即開啟。

* 確認已核取 **啟用雙重要素驗證** 核取方塊。
* 根據您選擇的選項，使用 **代碼 (1)** 或 **條碼 (2)**，透過您裝置上的應用程式新增帳戶。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/game-manager-my-profile-two-factor-authentication.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=75c008985bf14baea64efef07b145738" alt="Game Manager - 我的設定檔 - 雙重要素驗證" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-two-factor-authentication.png" />

完成之後，您將會取得雙重要素代碼。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-authenticator-confirm-verification-code.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=096a8a7fa752d2a4d474d4f1b0d28c2a" alt="Google - Authenticator - 確認驗證碼" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-authenticator-confirm-verification-code.png" />

返回 PlayFab **Game Manager** 中的 **設定檔** 設定：

* 輸入您收到的 **代碼** **(1)**。
* 選取 **儲存設定檔** 按鈕 **(2)**。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/game-manager-my-profile-enter-two-factor-code.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=118a842e37af1e72cfd88e83cabe754b" alt="Game Manager - 我的設定檔 - 輸入雙重要素代碼" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-enter-two-factor-code.png" />

## 測試

登出您的 PlayFab 帳戶，然後嘗試再次登入。驗證程序的第一個步驟看起來會很正常 (請參閱下方提供的範例)。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/playfab-login-screen.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=752c44de2c42fa2812bf1a1c42804e84" alt="PlayFab - 登入畫面" width="1144" height="699" data-path="images/playfab/identity/dev-identity/authentication/playfab-login-screen.png" />

第二個步驟會要求您使用雙重要素代碼。此代碼隨時可用，您可以使用安裝在裝置上的應用程式存取它。

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/playfab-enter-two-factor-token.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=501a24afaeb3d28dd70b94e661198a6d" alt="PlayFab - 輸入雙重要素權杖" width="767" height="560" data-path="images/playfab/identity/dev-identity/authentication/playfab-enter-two-factor-token.png" />

輸入正確的雙重要素代碼後，您應該就會登入。

PlayFab 雙重要素驗證的設定到此結束。


## Related topics

- [認證 PC BVT 指南](/zh-TW/publishing/game-publishing/concepts/certification/certification-pc-bvt-guide.md)
- [Game Manager 參考](/zh-TW/services/playfab/live-service-management/gamemanager/reference.md)
- [使用附加元件設定 SMTP 伺服器](/zh-TW/services/playfab/live-service-management/game-configuration/title-communications/emails/setting-up-an-smtp-server-with-add-ons.md)
- [XBOX 合作夥伴加入流程:取得存取權限與發行](/zh-TW/home/onboarding.md)
- [PlayFab API 的 Microsoft Entra ID 驗證](/zh-TW/services/playfab/identity/dev-identity/authentication/entra-id-api-authentication.md)
