Controls — Consents

Controls

A consent is the record of an account's consent to a control. Consents are given by users during signup or login, through the Login UI (Authentication API), for controls that require consent. They can't be created by admins.

All consents are persisted, meaning that once an account has consented it won't need to consent again in a subsequent login. An account can always withdraw its consent, so it will be asked again the next time.

The consents for a tenant can be retrieved via either the Admin UI, the Account UI, the Management API or the Agent API.

  • Admin UI - In the Admin UI the consents to a control are shown in the control's Consents tab at https://{tenant_id}.admin.quasr.io/controls/{control_id}/consents. The consents of a user are shown in the user's Controls tab at https://{tenant_id}.admin.quasr.io/accounts/{account_id}/controls.
  • Account UI - In the Account UI users find their own consents in the Controls screen at https://{tenant_id}.account.quasr.io/controls.
  • Management API - In the Management API the listConsents or getConsent operation can be used at https://{tenant_id}.api.quasr.io/graphql. See: https://documenter.getpostman.com/view/18129777/UVXgMHEv#32f0d5e5-3721-43c5-9ccc-adb0bec383f3.
  • Agent API - In the Agent API the list-consents or get-consent tool can be used. See Agent API.

Every account that accepted the Terms of Service

  1. 1Withdraws the consent: the user is asked again at the next login

Recipient

Depending on the type of control, consent is given to a different recipient:

  • Scope and claim consents are given by an account to an application (client). They indicate that the application can obtain the scope or claim, and hence act on the account's behalf or receive its data. A consent to one application doesn't apply to another, so each application asks for its own consent. For example, when you access the Admin UI it will act on your behalf.
  • Legal consents are given by an account to your tenant. They indicate the account accepts the statements related to the control, for example the service Terms & Conditions. A legal consent applies to all your applications, so a user accepts the same terms only once.
  1. 1Scope control: asked once the user reached the score of the control
  2. 2Claim control: shares the user's attribute with the application, asked at the same moment

When Consent Is Asked

Consent is asked for the controls attached to an application (rules) that require consent, as soon as the user's session score reaches the control's score:

  • Legal controls with a zero (0) score are asked at the start of a signup, before the user has passed any factor.
  • All other controls are asked once the user has passed enough factors, prior to redirecting to the application.

Controls the user has already consented to are not asked again. If the user declines an optional control, this isn't stored: the application gets access without the scope or claim, and the user is asked again the next time. See Required vs Optional.

Once all controls are passed, a consent token is issued to complete the login.

Temporary Consent

Users can give temporary consent, meaning they consent only for a limited amount of time instead of indefinitely. The consent is then removed automatically once it expires, and the user will be asked again. Any tokens issued based on a temporary consent are time-boxed to the moment the consent expires.

A temporary consent is given by passing an expires_in value along with the consent to the Authentication API. You can express the time in seconds, minutes, hours, days, weeks or years as follows:

  • Seconds: s, secs or seconds.
  • Minutes: m, mins or minutes.
  • Hours: h, hrs or hours.
  • Days: d or days.
  • Weeks: w or weeks.
  • Years: y, yrs or years.

Configuration

Consents have the following properties:

  • Control (control: string) - The ID of the control consented to.
  • Account (account: string) - The ID of the account that gave consent.
  • Recipient (recipient: string) - The ID of the application (scope or claim) or tenant (legal) consent was given to. See Recipient.
  • Value (value: string) - The value of the control at the moment consent was given, e.g. the URL of the accepted legal terms.
  • Expires At (expires_at: string) - The moment a temporary consent expires. See Temporary Consent.
  • Label (label: string) - Textual label for the consent. Defaults to the control's label, and can be changed by the account.
  • Status (status: string) - The current status of the consent. See Status.

Status

A consent can have one of the following statuses:

  • Enabled (ENABLED) - The consent is valid.
  • Disabled (DISABLED) - The consent was withdrawn. The user will be asked again the next time.
  • Locked (LOCKED) - The consent 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.

Consents can be withdrawn via either the Account UI, the Admin UI, the Management API or the Agent API.

2026.11.22 | © Copyright 2026 Quasr BV