> ## 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.

# Authentification à deux facteurs

> Ajoutez une couche de sécurité supplémentaire à votre compte PlayFab Game Manager en associant une application d'authentification sur votre appareil pour activer la vérification de connexion à deux facteurs.

L'authentification à deux facteurs vous permet de renforcer la sécurité de votre compte PlayFab Game Manager en ajoutant une étape supplémentaire au processus d'authentification.

Pour ce faire, elle ajoute un facteur lié à l'appareil au processus d'authentification, qui vous permet de vous authentifier uniquement si vous possédez un appareil spécifiquement enregistré à cet effet.

## Configuration de l'authentification à deux facteurs

Installez une application d'**authentification à deux facteurs** sur votre appareil. Vous pouvez rechercher vous-même une application, ou sélectionner votre plateforme dans la liste suivante :

* [iPhone, iPad et iPod Touch](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)
* [Téléphone ou tablette Android](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)
* [Téléphone ou tablette Windows](https://www.windowsphone.com/store/app/authenticator/e7994dbc-2336-4950-91ba-ca22d653759b)

Les étapes sont globalement similaires sur toutes les plateformes. Cet exemple montre un appareil Android et l'application Google Authenticator.

Une fois l'application téléchargée :

* Ouvrez-la et suivez les instructions.
* Sélectionnez le bouton **Begin** **(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 - Validation en deux étapes - Commencer" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-begin.png" />

Suivez le tutoriel de l'application, s'il y en a un **(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 - Validation en deux étapes - Écran d'informations" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-info-screen.png" />

* Sélectionnez ensuite l'une des deux options pour ajouter votre compte PlayFab :

* Scannez un **code-barres (1)**.

* Ou saisissez la **clé** manuellement **(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 - Validation en deux étapes - Ajouter un compte" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-add-account.png" />

Quelle que soit l'option choisie, rendez-vous sur le site web PlayFab et accédez à **Game Manager**. Dans l'onglet **Dashboard** :

* Sélectionnez le panneau **Account** **(1)**.
* Sélectionnez ensuite **My Profile (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 - Tableau de bord - Ouvrir My Profile" width="1008" height="720" data-path="images/playfab/identity/dev-identity/authentication/game-manager-dashboard-open-my-profile.webp" />

Les paramètres **Account** s'ouvrent.

* Vérifiez que la case **Enable two-factor authentication** est cochée.
* Selon l'option choisie, utilisez le **code (1)** ou un **code-barres (2)** pour ajouter un nouveau compte à l'aide de l'application sur votre appareil.

<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 - My Profile - Authentification à deux facteurs" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-two-factor-authentication.png" />

Une fois cette opération effectuée, vous obtiendrez un code à deux facteurs.

<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 - Confirmer le code de vérification" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-authenticator-confirm-verification-code.png" />

Revenez aux paramètres **Profile** dans PlayFab **Game Manager** :

* Entrez le **code** que vous avez reçu **(1)**.
* Sélectionnez le bouton **Save Profile** **(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 - My Profile - Entrer le code à deux facteurs" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-enter-two-factor-code.png" />

## Test

Déconnectez-vous de votre compte PlayFab et essayez de vous reconnecter. La première étape du processus d'authentification aura l'aspect habituel (voir l'exemple ci-dessous).

<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 - Écran de connexion" width="1144" height="699" data-path="images/playfab/identity/dev-identity/authentication/playfab-login-screen.png" />

La deuxième étape vous demandera d'utiliser votre code à deux facteurs. Le code est disponible à tout moment, et vous pouvez y accéder à l'aide de l'application installée sur votre appareil.

<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 - Entrer le jeton à deux facteurs" width="767" height="560" data-path="images/playfab/identity/dev-identity/authentication/playfab-enter-two-factor-token.png" />

Une fois le code à deux facteurs correct saisi, vous devriez être connecté.

Ceci conclut la configuration de l'authentification à deux facteurs pour PlayFab.


## Related topics

- [Guide BVT de certification pour PC](/fr/publishing/game-publishing/concepts/certification/certification-pc-bvt-guide.md)
- [Intégration des partenaires XBOX : accès et publication](/fr/home/onboarding.md)
- [Référence de Game Manager](/fr/services/playfab/live-service-management/gamemanager/reference.md)
- [Configuration d'un serveur SMTP avec des modules complémentaires](/fr/services/playfab/live-service-management/game-configuration/title-communications/emails/setting-up-an-smtp-server-with-add-ons.md)
- [D3D12_SHADING_RATE (consoles XBOX Series)](/fr/reference/graphics/d3d12/enums/d3d12_shading_rate_public.md)
