StandIn.Client 1.0.1

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

StandIn

Simulate users during development: a maintained successor of RimDev.Stuntman for ASP.NET Core on .NET 8 and later.

CI NuGet License: MIT

With StandIn you sign in to your development environment as any test user with one click, without an identity provider. It offers cookie sign-in with a user picker for MVC, Razor Pages and Blazor Server, bearer tokens for REST APIs, a token endpoint for clients (Blazor WebAssembly, MAUI, WPF, console) and helpers for integration tests.

For development only. StandIn switches itself on only in Development and cannot be activated in Production. It does not replace real authentication. Details: SECURITY.md.

Installation

dotnet add package StandIn.AspNetCore
Package Purpose
StandIn.AspNetCore Handler, user sources, endpoints, user picker for MVC/Razor Pages/Blazor Server, token endpoint
StandIn.Blazor Picker component and AuthenticationStateProvider for WebAssembly, Hybrid and Auto-WASM
StandIn.Client HttpClient handler for MAUI, WPF, WinForms, console, worker
StandIn.Testing Helpers for WebApplicationFactory integration tests

Target frameworks: net8.0 and net10.0. net8.0 stays in the packages for existing projects, even though Microsoft has ended its support.

Quick start

builder.Services.AddAuthentication().AddStandIn(builder.Environment, options =>
{
    options.AddUser(new StandInUser("admin", "Local Admin").AddRole("Administrator"));
    options.AddUsersFromJson("stuntman-users.json");
});

app.UseAuthentication();
app.UseAuthorization();
app.MapStandIn();

You get the user picker like this:

  • MVC and Razor Pages: @Html.StandInUserPicker() in the view.
  • Blazor Server and any HTML page: app.UseStandInPicker() inserts it into every page.
  • Blazor WebAssembly, Hybrid, Auto-WASM: <StandInPicker /> from StandIn.Blazor.

Set position and alignment with SetUserPickerAlignment and SetUserPickerVerticalPosition.

AddStandIn is active only in Development. In all other environments it does nothing, and it cannot be switched on in Production. The endpoints live under /stuntman.

Where to go next

I want to ... Read
switch from RimDev.Stuntman docs/migration.md
test a REST API with a bearer token samples/MinimalApi
MVC with cookie and picker samples/Mvc
sign a client (MAUI, WPF, Blazor WASM) in to the API StandIn.Client, AddStandInClient; Blazor: AddStandInBlazor
run integration tests as a specific user factory.CreateStandInClient("admin") from StandIn.Testing
security rules and design docs/concept.md

Contributing

Please report bugs and ideas as an issue and send changes as a pull request (see CONTRIBUTING.md). Please do not report security vulnerabilities in public, but as described in SECURITY.md.

License

MIT. Parts are based on RimDev.Stuntman (MIT, © 2018 Ritter Insurance Marketing), see THIRD-PARTY-NOTICES.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  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 StandIn.Client:

Package Downloads
StandIn.Blazor

StandIn for Blazor WebAssembly, Auto and Hybrid: user picker component, AuthenticationStateProvider and token handling.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 101 11/14/2026
1.0.0 95 11/14/2026
0.1.0-preview.2 65 11/14/2026
0.1.0-preview.1 75 11/14/2026