Class: PermissionRegistrarService
Class: PermissionRegistrarService
Defined in: auth-server-nest/src/services/permission-registrar.service.ts:22
NestJS adapter around the framework-agnostic PermissionRegistrar. Wires
the registrar to NestJS’s OnModuleInit so the manifest upsert fires on
boot, after providers are constructed.
Idempotent — auth server upserts every declared permission and prunes rows previously attributed to this service. Safe to run on every boot. No-op when no manifest is configured.
Non-fatal on failure: logs and returns. The service continues booting.
Implements
OnModuleInit
Constructors
Constructor
new PermissionRegistrarService(
opts,serviceAuth,http):PermissionRegistrarService
Defined in: auth-server-nest/src/services/permission-registrar.service.ts:25
Parameters
opts
serviceAuth
http
Returns
PermissionRegistrarService
Methods
onModuleInit()
onModuleInit():
Promise<void>
Defined in: auth-server-nest/src/services/permission-registrar.service.ts:31
Returns
Promise<void>
Implementation of
OnModuleInit.onModuleInit