Table of Contents

OSL Token Verification

OSL Token Verification provides a Unity request manager and a .NET 8 backend starter for checking Google, Facebook, Apple, Steam, and Discord login results outside the game client.

Overview

Use this package when a Unity project has already acquired a provider credential but should not trust the client callback by itself. Google and Apple identity tokens are validated as JWTs; Facebook, Steam, and Discord credentials are checked through their provider service APIs.

Included Components

  • TokenVerifyManager for Unity-side verification requests
  • A sample scene at Assets/OSL/TokenVerification/Samples/Scene/DemoScene.unity
  • A .NET server source archive at Assets/OSL/TokenVerification/Server_Dotnet_Source.zip in the exported package
  • Provider-specific endpoints for Google, Facebook, Apple, Steam, and Discord

Basic Setup

  1. Import OSL Token Verification into the Unity project.
  2. Extract Server_Dotnet_Source.zip to a local working folder and configure its server-side settings.
  3. Start the extracted .NET project with dotnet run.
  4. Open the sample scene, set the TokenVerifyManager server URL, and run a verification request with a valid provider token.

Requirements

  • Unity 2021.3 LTS minimum
  • Unity 2021.3.45f2 and 6000.3.12f1 tested for package-isolation import and compile
  • .NET 8 SDK for the included backend template
  • Provider credentials configured only in the extracted server project

The included server is a starter, not a verified production deployment. Add HTTPS, secret management, rate limiting, monitoring, account linking, and session issuance for your own environment.