Ansight.Tools.SecureStorage 0.1.0-preview.19

This is a prerelease version of Ansight.Tools.SecureStorage.
dotnet add package Ansight.Tools.SecureStorage --version 0.1.0-preview.19
                    
NuGet\Install-Package Ansight.Tools.SecureStorage -Version 0.1.0-preview.19
                    
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="Ansight.Tools.SecureStorage" Version="0.1.0-preview.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ansight.Tools.SecureStorage" Version="0.1.0-preview.19" />
                    
Directory.Packages.props
<PackageReference Include="Ansight.Tools.SecureStorage" />
                    
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 Ansight.Tools.SecureStorage --version 0.1.0-preview.19
                    
#r "nuget: Ansight.Tools.SecureStorage, 0.1.0-preview.19"
                    
#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 Ansight.Tools.SecureStorage@0.1.0-preview.19
                    
#: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=Ansight.Tools.SecureStorage&version=0.1.0-preview.19&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ansight.Tools.SecureStorage&version=0.1.0-preview.19&prerelease
                    
Install as a Cake Tool

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_value
  • secure.set_value
  • secure.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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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