Skip to Content
TAdminAPI and extension reference

API and extension reference

On this page

Backend entry points

TypeResponsibility
AdminStartupServices and serialization contexts
AdminAuthControllerPassword challenges, login, refresh, snapshots, passwords and logout
AdminUserController / AdminRoleControllerUser and role commands / queries
AdminMenuController / AdminButtonControllerNavigation and button permission resources
AdminConfigurationWorkbookController / AdminConfigurationWorkbookServiceSix configuration workbook commands, frozen preview sessions, paging and commit stages
AdminIdentityController / ExternalIdentityControllerIdentity settings and browser protocol
AdminAuditLogController / AdminSystemLogControllerAuditing and system logs
IIdentityService / ITokenService / IPermissionServiceIdentity verification, token sessions and permission snapshots

Host extension points

TypeContract
IAdminModuleProviderTrusted backend module catalog
IAdminSeedDataProviderModule-owned seeds
IMenuRouteProviderPaths and trusted component keys
IAdminTenantResolver / IAdminRealmContextAccessorRealms and database routing
IOneTimeCodeStoreAtomic one-time state with TTL
IAdminRateLimiterRealm-scoped authentication throttling
IAdminSecretProtectorSensitive data protection
IAdminCacheMetrics / IAdminLogQueueMetricsCache and log-queue observability

Module inputs and return values

These interfaces use the TAdmin namespace. See the module example for implementations and registration order.

MemberInputReturn value and requirements
IAdminModuleProvider.GetModule()No request argumentsAdminModuleDefinition with required Key, Name, EnglishName and FrontendPath
IAdminSeedDataProvider.GetMenus()NoneIEnumerable<Menu> with stable module, menu code, path and component identities
GetMenuLocales()NoneIEnumerable<MenuLocale> linked by MenuId
GetButtons()NoneIEnumerable<Button> whose ButtonCode matches the API permission
GetUsers() / GetRoles()NoneUser / role seeds; return an empty collection when the module owns none
IMenuRouteProvider.ResolveComponentKey(string? path)Frontend route pathAn 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.

SymptomDiagnostic orderGuide
API 404Check that the request reaches the backend; verify method, path, controller registration in the active RPC store and UseWebApiHost pipeline
Protected API 401Check Bearer header, expiry, revocation, endpoint and realm, then refresh and credential restorationAuthentication
API 403 with msg: ForbiddenCompare controller permission codes, role grants and current snapshot; ensure the catalog uses the same RPC storePermissions
API 403 with msg: PasswordChangeRequiredComplete the required password change before resuming business requests; token refresh loops will not resolve itAccount and bootstrap configuration
Menu exists but its page failsAlign module FrontendPath, menu Path, ComponentKey and trusted frontend registration; inspect page-chunk requestsModule example, Vue integration
Login repeatedly expiresCheck concurrent refresh, scopes treating normal renewal as a new login, and late responses overwriting current stateRequest scopes
Bootstrap password changes have no effectCheck the actual database path; bootstrap only creates the first account, while existing users use protected password commandsConfiguration
External identity callback failsCompare public browser origin, generated callback, allowed realm, completion page and initiating tab transactionExternal identity
Duplicate consumption or delayed revocation across instancesVerify atomic shared one-time state and throttling, permission / session invalidation and realm keysShared state
Workbook confirmation times out with an uncertain outcomeRead databaseCommitted / published using the original sessionId; reconcile normal data and audits if that session is lostCommit 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.