GrantAwareOptions
katanakit-js / GrantAwareOptions
Interface: GrantAwareOptions
Section titled “Interface: GrantAwareOptions”Defined in: core/services/grant.service.ts:39
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
access? |
AccessService |
Override the registry (tests, isolated instances). | core/services/grant.service.ts:46 |
capability |
string |
- | core/services/grant.service.ts:42 |
now? |
Date |
Injected clock, so expiry is testable. | core/services/grant.service.ts:48 |
resource |
{ id: string | number; type: string; } |
- | core/services/grant.service.ts:41 |
resource.id |
string | number |
- | schemas/grant.schema.ts:15 |
resource.type |
string |
- | schemas/grant.schema.ts:14 |
subject |
{ [key: string]: unknown; id: string | number; roles: string[]; } |
- | core/services/grant.service.ts:40 |
subject.id |
string | number |
- | schemas/access.schema.ts:105 |
subject.roles |
string[] |
- | schemas/access.schema.ts:106 |
useGrants? |
GrantResolver |
Omit to deny every grant-scoped check. Global roles still resolve. | core/services/grant.service.ts:44 |