Skip to content
rw3iss Auth

~~Class: PermissionRegistrar~~

Class: PermissionRegistrar

Defined in: auth-server-ts/src/http-clients/permission-registrar.ts:25

Legacy back-compat shim — registers a service’s declarative permission manifest with the auth server (POST /admin/permissions/register) using the legacy AuthHttpClient + ServiceAuthClient pair.

Deprecated

Use AuthClient.flows .registerPermissions() instead. Will be removed once the NestJS adapter migrates (v0.4 / v1.0 platform release).

Constructors

Constructor

new PermissionRegistrar(opts): PermissionRegistrar

Defined in: auth-server-ts/src/http-clients/permission-registrar.ts:28

Parameters

opts

PermissionRegistrarOptions

Returns

PermissionRegistrar

Methods

register()

register(): Promise<boolean>

Defined in: auth-server-ts/src/http-clients/permission-registrar.ts:32

Returns

Promise<boolean>