TenancyEngine.Sdk.Maui 0.6.0

Prefix Reserved
dotnet add package TenancyEngine.Sdk.Maui --version 0.6.0
                    
NuGet\Install-Package TenancyEngine.Sdk.Maui -Version 0.6.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="TenancyEngine.Sdk.Maui" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TenancyEngine.Sdk.Maui" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="TenancyEngine.Sdk.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TenancyEngine.Sdk.Maui --version 0.6.0
                    
#r "nuget: TenancyEngine.Sdk.Maui, 0.6.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.
#:package TenancyEngine.Sdk.Maui@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TenancyEngine.Sdk.Maui&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=TenancyEngine.Sdk.Maui&version=0.6.0
                    
Install as a Cake Tool

TenancyEngine.Sdk.Maui

Ready-to-use TenancyEngine sign-in for .NET MAUI apps (Android, iOS, Mac Catalyst, Windows): system browser OIDC with PKCE (no embedded web view, no client secret), OS-backed secure token storage, and silent token refresh. Targets .NET 10 MAUI.

Install

dotnet add package TenancyEngine.Sdk.Maui

Use

Register a public client for your app in the TenancyEngine console, then:

using TenancyEngine.Sdk.Maui;
using TenancyEngine.Sdk.Maui.Auth;

var auth = TenancyEngineMaui.CreateAuthClient(new TenancyEngineAuthConfig
{
    Authority = "https://auth.yourdomain.com",
    ClientId = "yourapp-mobile",
    RedirectUri = "com.yourapp.mobile://auth/callback",
    PostLogoutRedirectUri = "com.yourapp.mobile://",
});

if (!await auth.TryRestoreSessionAsync())
{
    var result = await auth.SignInAsync();
}

var token = await auth.GetValidAccessTokenAsync(); // null when the session is gone
await auth.SignOutAsync();

On Android, derive a callback activity from TenancyEngineAuthCallbackActivityBase for your URL scheme.

Learn more at https://tenancyengine.com.

License

Free to use under the Cyntrix SDK License (see LICENSE.txt in this package; a French version is in LICENSE.fr.txt).

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst26.0 is compatible.  net10.0-windows10.0.19041 is compatible. 
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
0.6.0 105 11/4/2026
0.4.3 123 10/10/2026