> ## 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 的 Microsoft 帐户身份验证

> 了解如何使用 Microsoft 帐户注册 PlayFab、邀请经 Microsoft 身份验证的新用户加入你的工作室，以及在 Game Manager 中使用 Entra ID 登录。

# PlayFab Game Manager 的帐户身份验证

<Note>
  2024 年 7 月 27 日之后所有**新的** PlayFab 用户帐户都必须使用 Microsoft 身份验证服务。
</Note>

PlayFab 支持两种用户身份验证方法。第一种是原始的 PlayFab 用户身份验证系统。第二种也是推荐的方式是 Microsoft 的身份验证服务——Microsoft 帐户和 Microsoft Entra ID（之前称为 Azure Active Directory）。

### 使用经 Microsoft 身份验证的帐户注册

你可以使用现有或新的 Microsoft 帐户创建新的 PlayFab 帐户。PlayFab 身份验证系统不再可用于新帐户。

1. 导航到 [PlayFab 的注册页面](https://developer.playfab.com)。
2. 选择 **Sign up with Microsoft** 并按照注册流程操作。

   <img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/aad-sign-up.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=4d5ed882536c23f66b91cb5be3151df4" alt="Sign up with Microsoft" width="646" height="661" data-path="images/playfab/identity/dev-identity/authentication/aad-sign-up.png" />

### 创建新的经 Microsoft 身份验证的用户

1. 导航到你工作室的 users 部分。

   <img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/AADDoc1.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=449015cd63b0523c0719a3aa92b1869f" alt="Studio Users" width="2058" height="306" data-path="images/playfab/identity/dev-identity/authentication/AADDoc1.png" />

2. 在右上角选择 **Add User**

3. 添加所需的详细信息和配置，包括选择 **Microsoft** 作为身份验证提供程序。

   <img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/aad-new-user.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=210334bc8c76c6116fe6160e0ffe5cfc" alt="Select Microsoft Authentication" width="1079" height="844" data-path="images/playfab/identity/dev-identity/authentication/aad-new-user.png" />

4. 完成后选择 **Add user** 向用户发送邀请。然后用户通过 Microsoft 帐户进行注册。

   <img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/aad-auth-log-in.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=533b4e4d0c6971f716450fae1a51a40d" alt="Sign in with Microsoft" width="622" height="629" data-path="images/playfab/identity/dev-identity/authentication/aad-auth-log-in.png" />

### Microsoft 帐户限制

Microsoft 帐户身份验证适用于单个用户，包括用于程序化身份验证的 Microsoft 帐户令牌交换。它不支持组或 graph。


## Related topics

- [用于 PlayFab API 的 Microsoft Entra ID 身份验证](/zh-CN/services/playfab/identity/dev-identity/authentication/entra-id-api-authentication.md)
- [身份验证](/zh-CN/services/playfab/identity/player-identity/authentication/index.md)
- [服务器端匿名登录身份验证](/zh-CN/services/playfab/identity/player-identity/platform-specific-authentication/anonymous-login.md)
- [使用 Facebook 和 HTML5 设置 PlayFab 身份验证](/zh-CN/services/playfab/identity/player-identity/platform-specific-authentication/facebook-html5.md)
- [使用 Kongregate 和 Unity 设置 PlayFab 身份验证](/zh-CN/services/playfab/identity/player-identity/platform-specific-authentication/kongregate-unity.md)
