Xbox
You can offer Xbox as a login option in FirstLook. To maximize the benefits of Xbox integration, we recommend setting up an OAuth Client and adding FirstLook as a relying party in your Partner Center.
Default Behavior
By default, players will log in using the FirstLook Owned OAuth Client. This allows you to verify that players have an Xbox Account and stores their Xbox Gamertag (username) in FirstLook. However, this does not provide access to a player’s pXUID, which is a unique identifier that you can use across your backends, processes, and services.
Configuring FirstLook to Retrieve pXUID
The pXUID is a unique identifier for a player’s Xbox Account scoped to your publisher organization. When a player launches the game on an Xbox console, the client will see the pXUID and use it to authenticate the player. If your studio has set up any type of backend or API, this identifier can typically be used to track playtime, verify ownership of a game, or control access to features, along with all features specific to your game.
To retrieve the pXUID, players need to log in using an OAuth Client owned and configured within the same Azure organization as your Xbox Publisher. You can configure your own OAuth Client credentials instead of using the FirstLook Owned OAuth Client.
Additionally, FirstLook must be added as a relying party in your Partner Center so that we can exchange the token granted by your Xbox OAuth Client for a pXUID using Xbox Live Services.
Creating an OAuth Client
First, create an OAuth Client in your Azure Portal and register FirstLook as a Microsoft Entra ID app registration. Follow the steps detailed in the Microsoft Docs (🔒 requires Microsoft Partner login).
For the redirect URIs, use the URLs listed on the Xbox Settings page. Enter the resulting Client ID and Client Secret into the Settings page.
Once set up, you can confirm the login flow by attempting to connect your Xbox Account as a player.
Adding FirstLook as a Relying Party
After setting up the OAuth Client, you will need to add FirstLook as a relying party in your Partner Center.
For detailed instructions on adding FirstLook as a relying party, follow the Game Development Kit Docs (🔒 requires Microsoft Partner login).
You will need to create FirstLook as a Partner, Web Service, and then add it as a relying party. Instead of creating a new Relying Party Certificate, use the FirstLook Public Certificate available on the Xbox Settings page.
Once configured and published, you can toggle ‘Fetch xPUID’ in the Xbox Settings to start retrieving the pXUID for players when they log in.