Skip to main content
This tutorial guides you through the procedure for PlayFab authentication using the Universal Windows Platform (UWP).
This procedure serves as a basic introduction on how you can obtain all entities, and commit authentication via Windows Hello and PlayFab. For a more sophisticated example of Windows Hello and PlayFab authentication, consider our [UWPExample project](https://github.com/PlayFab/UWPExample).

Requirements

It is very important that you use the Windows 10 operating system, are logged in with a verified Microsoft account, and have configured an access interface such as PIN. If these requirements aren’t* met, the app will fail without any useful explanation of why.

Preparing a Visual Studio project

Start Visual Studio and create a new project.
  1. Under Templates, select Windows Universal.
  2. Then select the Blank App (Universal Windows) type.
  3. Name it GettingStartedPlayfabUWP.
  4. Select the OK button to submit.
  1. Select the Target Version and the Minimum Version that match your Project.
  2. Select the OK button.
Once the Project is created, add the PlayFab SDK using the NuGet Package Manager.
  1. First, select the Tools tab.
  2. In the drop-down menu, select NuGet Package Manager.
  3. Then select Manage NuGet Packages for Solution.
In the NuGet Manager window:
  1. Select Browse and search for the PlayFabAllSDK package.
  2. Select your target Project.
  3. Then select the Install button.
Once finished, your basic project setup is complete. In the next section we’ll modify two classes that should be automatically generated on project creation:
  1. App
  2. MainPage

Implementation

App.xaml.cs

This class will just set up our PlayFab SDK by setting a proper title ID. Don’t forget to replace the title ID with your own.

MainPage.xaml

This file contains the layout for our main page. This is a super trivial layout with two buttons, and a text input combined in a vertically oriented grid. The buttons are bound to specific methods, and the textbox is accessible via its name UsernameInput.

MainPage.xaml.cs

This is the functional class for the main page and it’s the heart of the example. Refer to the code comments, and review the different methods that are designed to walk you through PlayFab+Hello register and login. The easiest approach to start learning the code is to review the methods that are triggered by the corresponding buttons:
  • RegisterRequest
  • LogInRequest.

Testing

To run the application:
  1. Enter your username.
  2. Select the Register With Hello button.
Follow the instruction that Windows offers for authentication.
  1. Once your identity is confirmed, you’ll see the confirmation message saying that the account was Registered and signed in.
  2. With a Session Ticket.
  1. Select the Sign in With Hello button.
Follow the instruction that Windows offers for authentication.
  1. Once your identity is confirmed, you’ll see the confirmation message saying that the account is Signed in.
  2. With a Session Ticket.
At this point you have successfully integrated PlayFab into your UWP application.
Last modified on August 10, 2026