API and extension reference
On this page
Backend entry points
| Type | Responsibility |
|---|---|
AdminStartup | Services and serialization contexts |
AdminAuthController | Password challenges, login, refresh, snapshots, passwords and logout |
AdminUserController / AdminRoleController | User and role commands / queries |
AdminMenuController / AdminButtonController | Navigation and button permission resources |
AdminConfigurationWorkbookController / AdminConfigurationWorkbookService | Six configuration workbook commands, frozen preview sessions, paging and commit stages |
AdminIdentityController / ExternalIdentityController | Identity settings and browser protocol |
AdminAuditLogController / AdminSystemLogController | Auditing and system logs |
IIdentityService / ITokenService / IPermissionService | Identity verification, token sessions and permission snapshots |
Host extension points
| Type | Contract |
|---|---|
IAdminModuleProvider | Trusted backend module catalog |
IAdminSeedDataProvider | Module-owned seeds |
IMenuRouteProvider | Paths and trusted component keys |
IAdminTenantResolver / IAdminRealmContextAccessor | Realms and database routing |
IOneTimeCodeStore | Atomic one-time state with TTL |
IAdminRateLimiter | Realm-scoped authentication throttling |
IAdminSecretProtector | Sensitive data protection |
IAdminCacheMetrics / IAdminLogQueueMetrics | Cache and log-queue observability |
Module inputs and return values
These interfaces use the TAdmin namespace. See the module example for implementations and registration order.
| Member | Input | Return value and requirements |
|---|---|---|
IAdminModuleProvider.GetModule() | No request arguments | AdminModuleDefinition with required Key, Name, EnglishName and FrontendPath |
IAdminSeedDataProvider.GetMenus() | None | IEnumerable<Menu> with stable module, menu code, path and component identities |
GetMenuLocales() | None | IEnumerable<MenuLocale> linked by MenuId |
GetButtons() | None | IEnumerable<Button> whose ButtonCode matches the API permission |
GetUsers() / GetRoles() | None | User / role seeds; return an empty collection when the module owns none |
IMenuRouteProvider.ResolveComponentKey(string? path) | Frontend route path | An owned, trusted component key; null for unknown or unowned paths |
FrontendPath is a controlled same-origin root path without an external URL or query. Registration supplies backend metadata; the host must also implement and register Vue pages. Display names can change, while changing permission codes or module keys affects saved grants and requests.
Frontend entry points
@tgateway/tadmin-web exports createTAdminPlugin, TAdminRuntimeContext, createTAdminClient, createTAdminAdminRouteRegistry, TADMIN_BUTTON_CODES, tadminMessages and shared log / identity components. See frontend integration.
Troubleshooting
Record the URL, method, HTTP status and response code / msg when troubleshooting.
| Symptom | Diagnostic order | Guide |
|---|---|---|
| API 404 | Check that the request reaches the backend; verify method, path, controller registration in the active RPC store and UseWebApi | Host pipeline |
| Protected API 401 | Check Bearer header, expiry, revocation, endpoint and realm, then refresh and credential restoration | Authentication |
API 403 with msg: Forbidden | Compare controller permission codes, role grants and current snapshot; ensure the catalog uses the same RPC store | Permissions |
API 403 with msg: PasswordChangeRequired | Complete the required password change before resuming business requests; token refresh loops will not resolve it | Account and bootstrap configuration |
| Menu exists but its page fails | Align module FrontendPath, menu Path, ComponentKey and trusted frontend registration; inspect page-chunk requests | Module example, Vue integration |
| Login repeatedly expires | Check concurrent refresh, scopes treating normal renewal as a new login, and late responses overwriting current state | Request scopes |
| Bootstrap password changes have no effect | Check the actual database path; bootstrap only creates the first account, while existing users use protected password commands | Configuration |
| External identity callback fails | Compare public browser origin, generated callback, allowed realm, completion page and initiating tab transaction | External identity |
| Duplicate consumption or delayed revocation across instances | Verify atomic shared one-time state and throttling, permission / session invalidation and realm keys | Shared state |
| Workbook confirmation times out with an uncertain outcome | Read databaseCommitted / published using the original sessionId; reconcile normal data and audits if that session is lost | Commit recovery |
Read response msg alongside 401 / 403. See TWebApi for the UnifyResultFilter response contract. Not every failed response requires signing in again.
Provide a reproducible report
Provide package versions, target framework, minimal host registration and a redacted failing request. For menus, include module key, path, component key and permission code. For multiple instances, describe request routing and shared state. Remove passwords, tokens, keys and login challenges.