Rules are used to attach controls to clients (applications). A control has no effect on an application until it's attached through a rule, and each rule indicates whether the control is required or optional for that application. Rules provide the following use cases:
A rule holds a copy of its control's type, value, score and configuration, which is automatically kept in sync when the control changes.
The rules for a tenant can be retrieved via either the Admin UI, the Management API or the Agent API.
https://{tenant_id}.admin.quasr.io/accounts/{client_id}/controls. The applications a control is attached to are shown in the control's Clients tab at https://{tenant_id}.admin.quasr.io/controls/{control_id}/clients.listRules or getRule operation can be used at https://{tenant_id}.api.quasr.io/graphql. See: https://documenter.getpostman.com/view/18129777/UVXgMHEv#48682def-632f-4395-81b3-99d6badaa0d0.list-rules or get-rule tool can be used. See Agent API.Rules have the following configuration options:
control: string) - The ID of the control to attach. The control must exist in your tenant and must not be locked.account: string) - The ID of the client (application) to attach the control to. The client must exist in your tenant and must not be locked.label: string) - Textual label for the rule.status: string) - The current status of the rule: ENABLED or DISABLED (default). Only enabled rules are presented and evaluated. See Status.required: boolean) - Whether the control is required for the application. Defaults to false. See Required vs Optional.Whether a control is required or optional determines when it's presented to the user and what happens if it's not passed:
scope parameter of the authorization request. It currently only presents required claims. Legal controls are always presented.The scope controls attached to an application make up its allowed OAuth 2.0 scopes. Creating or deleting a rule for a scope control automatically adds the scope to, or removes it from, the application's configuration. See Applications.
openid, which is required to support OpenID Connect 1.0 and issue identity tokens to the application.A rule can have one of the following statuses:
ENABLED) - The control is presented and evaluated for the application.DISABLED) - The control is ignored for the application. New rules are disabled by default.LOCKED) - The rule was locked because its control or application was disabled. It can't be updated, and is restored to its previous status when the parent is enabled again.Rules can be created via either the Admin UI, the Management API or the Agent API.
createRule operation can be used at https://documenter.getpostman.com/view/18129777/UVXgMHEv#612c5786-5358-4120-b5b0-7efd51cc2043.create-rule tool can be used. See Agent API.Rules can be updated or deleted via either the Admin UI, the Management API or the Agent API.
updateRule operation can be used at https://documenter.getpostman.com/view/18129777/UVXgMHEv#004649ae-99ca-447a-81ec-23f3b99c677b, or the deleteRule operation at https://documenter.getpostman.com/view/18129777/UVXgMHEv#c82ce97f-2511-4470-911f-c29f50207678.update-rule or delete-rule tool can be used. See Agent API.The other way round: the Applications tab of a control lists its rules