TAdmin
On this page
TAdmin is an administration module for applications that own their host. It supplies users, roles, menus, button permissions, authentication sessions, external identity and auditing. The backend uses TouchSocket WebApi; the Vue source module supplies shared pages. Your application owns the network service, application router and credential persistence.
Start with the standalone sample
Get the source from the TAdmin repository and run from its root. The complete sample requires Windows, the .NET 10 SDK and Node.js 22.12+. Its first build installs and compiles the frontend dependencies.
dotnet run --project samples/TAdmin.Sample/TAdmin.Sample.csproj -f net10.0Sample address and account · Backend registration · Vue integration · API reference
Packages and responsibilities
| Package / project | Purpose |
|---|---|
TAdmin | Entities, services, controllers, authentication, authorization, seeds and administration realms |
TWebApi | Unified results, validation, anonymous / unwrapped attributes, log projections and DI bridging |
TWebApi.Generator | Compile-time WebApi type collection, JSON metadata and route-related generation |
Frontend source web/ | Shared administration, identity, log and account security pages with host adapters |
TAdmin.Sample | A complete, independently runnable frontend and backend host |
The backend depends on TUtility.App, TORM and TExcel. The frontend uses Vue 3 and Element Plus; see peerDependencies in web/package.json and Vue source integration.
Host boundary
The host owns the HTTP listener, controller registration and frontend routes. Connect authentication plugins, filters, the RPC store and administration services to one container. Supply request, permission, translation and login-scope adapters on the frontend.
Reading path
| Task | Guide |
|---|---|
| Configure databases and a bootstrap account | Configuration |
| Implement login, refresh and logout | Authentication and sessions |
| Add an API, menu and page | Module example |
| Extend permissions, modules or realms | Host extensions |
| Integrate an identity provider | OAuth2 / OIDC |
| Batch administration settings through XLSX | Configuration workbooks |
| Integrate auditing and log queries | Logging |
| Use result envelopes and validation filters independently | TWebApi |