Yoti.Sandbox 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Yoti.Sandbox --version 1.0.0
NuGet\Install-Package Yoti.Sandbox -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Yoti.Sandbox" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Yoti.Sandbox --version 1.0.0
#r "nuget: Yoti.Sandbox, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Yoti.Sandbox as a Cake Addin
#addin nuget:?package=Yoti.Sandbox&version=1.0.0

// Install Yoti.Sandbox as a Cake Tool
#tool nuget:?package=Yoti.Sandbox&version=1.0.0

Yoti .NET Sandbox SDK

Build Status

Welcome to the Yoti .NET Sandbox. This repo contains the tools you need to test your .NET back-end integration, alongside installation of the Yoti .NET SDK.

Sandbox Supported Frameworks

  • .NET Standard 2.1
  • .NET Core App 3.1
  • .NET 4.8

Please email sdksupport@yoti.com if you require a Target Framework which is not listed here.

Installing the Sandbox

To install the Yoti Sandbox NuGet package you will need to install NuGet. You can find instructions to do that here

To import the latest Yoti SDK into your project, enter the following command from NuGet Package Manager Console in Visual Studio:

Install-Package Yoti.Sandbox

For other installation methods, see nuget.org/packages/Yoti.Sandbox


  • CLIENT_SDK_ID is the SDK identifier generated by Yoti Hub in the Key tab when you create your app.

  • /path/to/your-pem-file.pem is the path to the application pem file. It can be downloaded only once from the Keys tab in your Yoti Hub.

Please do not open the pem file as this might corrupt the key and you will need to create a new application.

Profile Token Creation

Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair keyPair;

using (StreamReader stream = File.OpenText("path/to/hub-private-key.pem"))
	keyPair = Yoti.Auth.CryptoEngine.LoadRsaKey(stream);

const string sandboxClientSdkid = "your SDK ID";

SandboxClient sandboxClient = new SandboxClientBuilder()

SandboxAgeVerification ageVerification = new SandboxAgeVerificationBuilder()
	.WithDateOfBirth(new DateTime(2001, 12, 31))

YotiTokenRequest tokenRequest = new YotiTokenRequestBuilder()
	.WithRememberMeId("some Remember Me ID")
	.WithGivenNames("some given names")
	.WithFamilyName("some family name")
	.WithFullName("some full name")
	.WithDateOfBirth(new DateTime(1980, 10, 30))
	.WithGender("some gender")
	.WithPhoneNumber("some phone number")
	.WithNationality("some nationality")
		building_number = 1,
		address_line1 = "some address"
	.WithBase64Selfie(Convert.ToBase64String(Encoding.UTF8.GetBytes("some base64 encoded selfie")))
	.WithDocumentDetails("PASSPORT USA 1234abc")

var sandboxOneTimeUseToken = sandboxClient.SetupSharingProfile(tokenRequest);

var yotiClient = new YotiClient(new HttpClient(), sandboxClientSdkid, keyPair);

Uri sandboxUri = new UriBuilder(


ActivityDetails activityDetails = yotiClient.GetActivityDetails(sandboxOneTimeUseToken);

// Perform tests
Assert.AreEqual("some@email", activityDetails.Profile.EmailAddress.GetValue());
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.1 14,052 12/3/2021
1.6.0 2,159 3/23/2021
1.5.0 418 11/3/2020
1.4.0 417 10/21/2020
1.3.0 474 7/7/2020
1.2.0 438 6/18/2020
1.1.0 406 6/11/2020
1.0.0 514 3/20/2020