Ansight.Tools.SecureStorage
0.1.0-preview.19
dotnet add package Ansight.Tools.SecureStorage --version 0.1.0-preview.19
NuGet\Install-Package Ansight.Tools.SecureStorage -Version 0.1.0-preview.19
<PackageReference Include="Ansight.Tools.SecureStorage" Version="0.1.0-preview.19" />
<PackageVersion Include="Ansight.Tools.SecureStorage" Version="0.1.0-preview.19" />
<PackageReference Include="Ansight.Tools.SecureStorage" />
paket add Ansight.Tools.SecureStorage --version 0.1.0-preview.19
#r "nuget: Ansight.Tools.SecureStorage, 0.1.0-preview.19"
#:package Ansight.Tools.SecureStorage@0.1.0-preview.19
#addin nuget:?package=Ansight.Tools.SecureStorage&version=0.1.0-preview.19&prerelease
#tool nuget:?package=Ansight.Tools.SecureStorage&version=0.1.0-preview.19&prerelease
Ansight.Tools.SecureStorage
Grouped secure-storage tool registrations for the Ansight .NET SDK.
License
The Ansight SDK is source-available software under the Ansight SDK Source-Available License. It is not open-source software. Production use is licensed only for use with Ansight Services.
Registered tools:
secure.get_valuesecure.set_valuesecure.remove_key
Usage
using Ansight;
using Ansight.Tools.SecureStorage;
var options = Options.CreateBuilder()
.WithSecureStorageTools(secure =>
{
secure.WithStorageIdentifier("MyApp");
secure.AllowKeys("session_token", "refresh_token");
})
.WithReadWriteToolAccess()
.Build();
secure.remove_key is delete-scoped. Use WithAllToolAccess() or a custom ToolGuard if you want delete operations to execute.
When using the Ansight or Ansight.Maui all-in-one packages, configure secure-storage access inside the setup callback:
using Ansight;
using Ansight.Tools.SecureStorage;
var options = Options.CreateBuilder()
.WithAnsightSdk(ansight =>
{
ansight.WithSecureStorageTools(secure =>
{
secure.WithStorageIdentifier("MyApp");
secure.AllowKeyPrefix("ansight.secure.");
});
})
.Build();
Use the same WithSecureStorageTools(...) call inside UseAnsight<App>(...) for MAUI. The all-in-one setup skips the default secure-storage registration when the callback registers the suite, so the configured storage identifier and key allow-list are used.
Restrictions
Secure-storage access is deny-all by default. You must explicitly allow keys with:
AllowKey(...)/AllowKeys(...)AllowKeyPrefix(...)/AllowKeyPrefixes(...)
Storage selection is configured at registration time:
WithStorageIdentifier(...)sets both the Android encrypted-preferences name and Apple Keychain service.WithAndroidStore(...)overrides the Android encrypted-preferences name.WithAppleService(...)overrides the Apple Keychain service.
These tools are intended for local debugging only and may expose highly sensitive application data.
Build-time remote tool policy
Projects that reference this package are covered by AnsightRemoteToolsPolicy. The default AllowedWithWarnings policy logs detected tool type and assembly details and emits a build warning when remote tools are included. Because this package contains remote tools, Disallowed only succeeds when the package is omitted from that build, for example with Debug-only package references. Use Allowed to bypass remote tool scanning and warnings. Set AnsightLogRemoteTools=false to suppress the detected-tool list.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Ansight.Core (>= 0.1.0-preview.19)
-
net9.0-android35.0
- Ansight.Core (>= 0.1.0-preview.19)
- Xamarin.AndroidX.Security.SecurityCrypto (>= 1.1.0.4-alpha07)
-
net9.0-ios18.0
- Ansight.Core (>= 0.1.0-preview.19)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 0.1.0-preview.19)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ansight.Tools.SecureStorage:
| Package | Downloads |
|---|---|
|
Ansight
All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.19 | 39 | 5/8/2026 |
| 0.1.0-preview.18 | 38 | 5/8/2026 |
| 0.1.0-preview.17 | 40 | 5/8/2026 |
| 0.1.0-preview.16 | 46 | 5/6/2026 |
| 0.1.0-preview.15 | 44 | 5/5/2026 |
| 0.1.0-preview.14 | 53 | 5/5/2026 |
| 0.1.0-preview.13 | 46 | 5/5/2026 |
| 0.1.0-pre9 | 58 | 5/3/2026 |
| 0.1.0-pre8 | 47 | 5/3/2026 |
| 0.1.0-pre7 | 47 | 4/30/2026 |
| 0.1.0-pre6 | 47 | 4/30/2026 |
| 0.1.0-pre5 | 40 | 4/30/2026 |
| 0.1.0-pre4 | 59 | 4/27/2026 |
| 0.1.0-pre3 | 53 | 4/21/2026 |
| 0.1.0-pre2 | 72 | 4/4/2026 |
| 0.1.0-pre12 | 49 | 5/4/2026 |
| 0.1.0-pre11 | 57 | 5/4/2026 |
| 0.1.0-pre10 | 54 | 5/3/2026 |
| 0.1.0-pre1 | 55 | 3/31/2026 |