StandIn.AspNetCore
1.0.1
dotnet add package StandIn.AspNetCore --version 1.0.1
NuGet\Install-Package StandIn.AspNetCore -Version 1.0.1
<PackageReference Include="StandIn.AspNetCore" Version="1.0.1" />
<PackageVersion Include="StandIn.AspNetCore" Version="1.0.1" />
<PackageReference Include="StandIn.AspNetCore" />
paket add StandIn.AspNetCore --version 1.0.1
#r "nuget: StandIn.AspNetCore, 1.0.1"
#:package StandIn.AspNetCore@1.0.1
#addin nuget:?package=StandIn.AspNetCore&version=1.0.1
#tool nuget:?package=StandIn.AspNetCore&version=1.0.1
StandIn
Simulate users during development: a maintained successor of RimDev.Stuntman for ASP.NET Core on .NET 8 and later.
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
Developmentand cannot be activated inProduction. 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 />fromStandIn.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 | Versions 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on StandIn.AspNetCore:
| Package | Downloads |
|---|---|
|
StandIn.Testing
Test helpers for StandIn: send requests as a user in HttpClient and WebApplicationFactory based integration tests. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 119 | 11/14/2026 |
| 1.0.0 | 109 | 11/14/2026 |
| 0.1.0-preview.2 | 66 | 11/14/2026 |
| 0.1.0-preview.1 | 70 | 11/14/2026 |