PlayFab Auth
Learn how to interact with PlayFab Auth
PlayFab provides a comprehensive suite of live game management services, including server hosting, data analytics, and liveOps utilities to streamline game development and monetization. It is designed to empower developers with the tools needed to engage players and drive revenue, all while minimizing overhead and time to market.
Prerequisites#
To set up your PlayFab authentication with Openfort, you'll need to get the Project ID
.
- Visit the PlayFab developer dashboard, select your title, and navigate to Settings wheel --> Title settings:
- In the API Features section, copy your Title ID:
Set up your provider#
To set up your PlayFab to authenticate players with Openfort, visit your dashboard provider settings.
Client-side Integration#
Where the identityToken
is a client session ticket, available from any Client Login function.
_11using System.Collections;_11using System.Collections.Generic;_11using UnityEngine;_11using Openfort.OpenfortSDK;_11using Openfort.OpenfortSDK.Model;_11public class openfortManager: MonoBehaviour {_11 async void Start(string token) {_11 OpenfortSDK openfort = await Openfort.Init(OPENFORT_PUBLISHABLE_KEY);_11 await Openfort.AuthenticateWithThirdPartyProvider(new ThirdPartyProviderRequest(ThirdPartyOAuthProvider.Playfab, token, TokenType.CustomToken));_11 }_11}
Uppon successful authentication, the SDK will return: