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.
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.https://{tenant_id}.account.quasr.io/controls.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.list-consents or get-consent tool can be used. See Agent API.https://api.quasr.io/scopes/account scope) can only retrieve their own consents.Every account that accepted the Terms of Service
Depending on the type of control, consent is given to a different recipient:
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:
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.
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:
s, secs or seconds.m, mins or minutes.h, hrs or hours.d or days.w or weeks.y, yrs or years.Consents have the following properties:
control: string) - The ID of the control consented to.account: string) - The ID of the account that gave consent.recipient: string) - The ID of the application (scope or claim) or tenant (legal) consent was given to. See Recipient.value: string) - The value of the control at the moment consent was given, e.g. the URL of the accepted legal terms.expires_at: string) - The moment a temporary consent expires. See Temporary Consent.label: string) - Textual label for the consent. Defaults to the control's label, and can be changed by the account.status: string) - The current status of the consent. See Status.A consent can have one of the following statuses:
ENABLED) - The consent is valid.DISABLED) - The consent was withdrawn. The user will be asked again the next time.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.
updateConsent operation can be used at https://documenter.getpostman.com/view/18129777/UVXgMHEv#18c4207b-8e02-4b3f-a271-ddff749a4426.update-consent tool can be used. See Agent API.