WebSvc.CrudAdmin 1.0.1

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

CrudAdmin v1.2.0

Unified Admin UI + IAM for multi-tenant Dynamic CRUD API platforms.

⚠ CRITICAL — Program.cs Setup

In your host project's Program.cs, you MUST call BOTH UseCrudAdmin() AND MapCrudAdmin():

builder.Services.AddCrudAdmin(o => { o.RequireAuth = true; });

var app = builder.Build();

app.UseRouting();
app.UseCrudAdmin();      // ✅ admin UI cookie auth middleware
app.UseCrudAuth();       // ✅ optional — protects /api/v* CRUD endpoints
app.MapCrudAdmin();      // ✅ REQUIRED — maps /admin/* pages and /api/admin/* endpoints
app.Run();

If you comment out app.MapCrudAdmin(), you will get 404 on /admin/login !

Default Login

  • URL: /admin/login
  • Username: admin
  • Password: admin@123
  • ⚠ Change immediately in production!

🎭 Built-in roles (v1.8+)

Role Permission set Risk Recommendation
Owner *.* 🛑 Destructive (total access) Reserve for true super-admins — auto-inherits all future destructive perms
Editor *.create, *.read, *.update, *.delete ✓ Safe Recommended default for power users
Writer *.read, *.create, *.update Standard Create + edit, no delete
Reader *.read Standard View-only

Why Editor exists

The wildcard *.* (held by Owner) literally means "every permission, including future ones." When new destructive permissions are added (e.g. database.bootstrap, database.config), Owner inherits them automatically. Editor explicitly lists the four CRUD actions, so it cannot accidentally accumulate destructive scope as the package evolves.

For most users, Editor is the right choice — assign Owner only when you genuinely want a role to grow with every new permission ever added.

© Narender Kumar

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 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 95 5/28/2026
1.0.0 106 5/27/2026