enable: (identifier: string, options?: ActOptions) => FgaResult = ...
Type Declaration
-
- (identifier: string, options?: ActOptions): FgaResult
-
Parameters
- identifier: string
Optionaloptions: ActOptions
Returns FgaResult
{ ok, policy, enforced: true, changed }, or a refusal
Switches fine-grained authorization on for an application: ensures its policy, then sets
appFgaEnforced. Refused while the policy is disabled (STS-FGA-0006) or does not parse (STS-FGA-0007), because an enforced application with such a policy refuses every detail — the moment to say so is while somebody is switching it on.