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
<PackageReference Include="TenancyEngine.Sdk.Maui" Version="0.6.0" />
<PackageVersion Include="TenancyEngine.Sdk.Maui" Version="0.6.0" />
<PackageReference Include="TenancyEngine.Sdk.Maui" />
paket add TenancyEngine.Sdk.Maui --version 0.6.0
#r "nuget: TenancyEngine.Sdk.Maui, 0.6.0"
#:package TenancyEngine.Sdk.Maui@0.6.0
#addin nuget:?package=TenancyEngine.Sdk.Maui&version=0.6.0
#tool nuget:?package=TenancyEngine.Sdk.Maui&version=0.6.0
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 | Versions 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. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.101)
- TenancyEngine.Sdk.Maui.Auth (>= 0.6.0)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.101)
- TenancyEngine.Sdk.Maui.Auth (>= 0.6.0)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.101)
- TenancyEngine.Sdk.Maui.Auth (>= 0.6.0)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.101)
- TenancyEngine.Sdk.Maui.Auth (>= 0.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.