An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
To let players sign in with their Xbox/Microsoft account from a custom Minecraft client, the application must be properly registered and use the supported Xbox/PlayFab sign-in flows. The context here covers how game titles integrate with Xbox services and PlayFab, not how to build a standalone Minecraft client, but the same principles apply for getting Xbox sign-in permissions.
At a high level, two things are required:
- Register the app in Microsoft Entra ID (Azure AD) so it can request Microsoft account tokens.
- Use the Xbox/PlayFab sign-in APIs supported by the Microsoft Game Development Kit (GDK) if building an Xbox/PC title that integrates with Xbox services.
1. Register the app in Microsoft Entra ID
To authenticate users with a Microsoft account for a website or app, the app must be registered in Microsoft Entra ID:
- Sign in to the Azure portal with an account that can register apps.
- Go to App registrations → + New registration.
- Enter an application name.
- For Supported account types, choose Personal Microsoft accounts only (for Xbox/Minecraft consumer accounts).
- Enter a Redirect URI where users are sent after sign-in and note it for later.
- After registration, note:
- Application (client) ID
- Directory (tenant) ID
- Under Certificates & secrets:
- Create a New client secret, set description and expiration.
- Store the secret value securely; it is used only on the server side.
This registration is required before requesting Microsoft account tokens that can be exchanged for Xbox services tokens.
2. Use Xbox/PlayFab sign-in flows (for GDK titles)
If building a GDK-based game that uses Xbox services and PlayFab, the recommended flows in the context are:
- PlayFab Services SDK flow:
- Install the GDK and add the PlayFab.Services.C Gaming Extension Library.
- Sign the player into Xbox using
XUserAddAsync. - Use
PFAuthenticationLoginWithXUserAsyncwith the returnedXUserHandleto sign into PlayFab.- Set
createAccount = TRUEto automatically create a PlayFab account if needed.
- Set
- PlayFab Party Xbox Live Helper Library flow:
- Call
PartyXblManager::LoginToPlayFab.- It automatically obtains Xbox services tokens and signs into PlayFab.
- If no PlayFab account exists, it creates and links one to the Xbox account.
- Call
These flows assume the title is an Xbox/GDK game using PlayFab; they are not generic Minecraft client APIs, but they show how Xbox sign-in permissions are normally handled in Microsoft’s ecosystem.
If the goal is a custom Minecraft client, additional platform and policy constraints apply that are not covered in this context. The context only supports describing the general Xbox/Microsoft account sign-in registration and GDK/PlayFab flows above.
References: