Controls

Controls

Controls are the mechanism to control application access. Their use is mandatory as they sit at the heart of what Quasr offers. Controls can enforce the following:

  • Level of Authentication - Requiring a certain level of authentication (score) prior to granting access.
  • Legal Consent - Requiring user consent to legal terms prior to granting access or prior to/during registration (signup). This is done with legal controls.
  • Data Consent - Requesting user consent to share data with a (third-party) application. This concerns one-time sharing of data, i.e. in an identity token. This is done with claim controls, which release attributes to the application.
  • Access Consent - Requesting user consent to give access to a (third-party) application. This concerns continuous access to data and/or resources, i.e. with an access token. This is done with scope controls.
  • Permission - Whether the user has permission to access the application. This can be required for any scope or claim control.

Before we start let's tackle some important terminology:

  • Control - The tenant-wide definition of a legal statement, scope or claim, including the score, consent and permission it requires.
  • Rule - A control attached to a client (application), as either required or optional. A control has no effect on a client until it's attached through a rule. See Rules.
  • Consent - The record of an account's consent to a control, given during signup or login. See Consents.
  • Permission - A control granted to an individual account by an admin. See Permissions.

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

  1. 1The session score needed to pass the control
  2. 2Releases attributes (claims) in the tokens
  3. 3Only accounts with a permission can pass it
  4. 4Not presented or granted anywhere: its rules, consents and permissions are locked

Types

Every control has a (sub)type which determines what its value means and how it's processed:

  • Scope (scope) controls represent API access as defined by the OAuth 2.0 standard. Once an access token is issued it holds a scope claim containing the granted scopes. The API inspects these scopes and makes an access decision; hence the meaning and enforcement of a scope happen at the API and not within Quasr. Scopes are just strings, but we recommend a fully-qualified approach (e.g. https://example.com/scopes/xyz).
  • Claim (claim) controls represent user data (OpenID Connect claims) that an application wants to receive, e.g. an email address. The data itself is released through the control's attributes, which are added to the identity and/or access token, the same as for scope and legal controls. What sets claim controls apart is that they require consent by default, so users explicitly agree to share their data with the application.
  • Legal (legal) controls represent acceptance of legal terms such as service Terms & Conditions, a Privacy Policy, or any other document or statement. The value is either a URL pointing to the text (recommended) or the text itself. Legal controls are processed differently: a consent to a legal control is given to your tenant as a whole rather than to a single application. See Consents.

The type also determines the defaults for consent and permission:

Type Value Granted In Consent Required Permission Required
ScopeOAuth 2.0 scopeAccess token (scope claim)No (configurable)No (configurable)
ClaimClaim nameIdentity and/or access token (via attributes)Yes (configurable)No (configurable)
LegalURL or text-AlwaysNever

Default Controls

In your tenant you'll find the following pre-provisioned scope controls:

Control Value Status Score Consent Required Permission Required
OpenID ConnectopenidENABLED2NoNo
Admin Accesshttps://api.quasr.io/scopes/adminENABLED5YesYes
Account Accesshttps://api.quasr.io/scopes/accountENABLED5YesNo
Offline Accessoffline_accessENABLED5YesNo
SolidwebidDISABLED2NoNo
Token Introspectionhttps://api.quasr.io/scopes/oauth2/introspectDISABLED5YesYes
  • OpenID Connect provides clients an identity token, on top of the standard OAuth 2.0 access token. See OpenID Connect.
  • Admin Access provides privileged access to the Management API and Agent API, though not all actions on other accounts are allowed in order to protect overall security and privacy guarantees. Accounts with a permission for this control are your tenant administrators. See Users — Permissions.
  • Account Access provides access to an account's own resources, such as enrollments, consents, etc., via the Management API and Agent API.
  • Offline Access allows clients to obtain a refresh token.
  • Solid adds a WebID to the tokens, for use with the Solid protocol. See Solid.
  • Token Introspection allows clients to call the OAuth 2.0 token introspection endpoint.

Configuration

All controls have the following configuration options:

  • Subtype (subtype: string) - The type of control: legal, scope or claim. See Types.
  • Label (label: string) - Textual label describing the control to users, e.g. in the Login UI and Account UI. Defaults to Legal, Scope or Claim.
  • Status (status: string) - The current status of the control: ENABLED or DISABLED (default). See Status.
  • Value (value: string) - Required. Its meaning depends on the type:
    • Scope: the OAuth 2.0 scope that will be included in the access token.
    • Claim: the name of the claim, e.g. email. The data itself is released through the attributes below.
    • Legal: a URL pointing to the legal text (recommended), or the legal text itself.
  • Score (score: number) - The minimum (security) score a user needs in their session to pass the control, i.e. to obtain or consent to it. Controls that provide more sensitive access can have a higher score, so more authentication factors will need to be passed. Defaults to 0. See Score.
  • Consent Required (config.consent_required: boolean) - Whether accounts must give consent to pass this control. In general you want consent to be given, but some scopes are implied and don't need explicit consent. Defaults to false for scopes and true for claims; always true for legal controls.
  • Permission Required (config.permission_required: boolean) - Whether accounts must have been granted a permission to pass this control. If you'd like to give everyone access to a control you can leave this unchecked, so no individual permissions have to be granted. For example, admin scopes require permission. Defaults to false; always false for legal controls. See Permissions.
  • Identity Attributes (config.attributes.identity: string[]) - The IDs of the attributes to include in the identity token when this control is passed. The account's claims for these attributes are added, keyed by the attribute's value.
  • Access Attributes (config.attributes.access: string[]) - The IDs of the attributes to include in the access token when this control is passed.

Status

A control can have one of the following statuses:

  • Enabled (ENABLED) - The control is active and is presented by the applications it's attached to.
  • Disabled (DISABLED) - The control is inactive. New controls are disabled by default, so you can configure them and attach them to applications before going live.
  • Locked (LOCKED) - The control was locked because a parent (e.g. your tenant) was disabled. It can't be updated, and is restored to its previous status when the parent is enabled again.

When a control is disabled, all of its rules, consents and permissions are locked, so it's no longer presented or granted anywhere. When the control is enabled again, they are restored to their previous status.

Setup

Controls can be created via either the Admin UI, the Management API or the Agent API.

  1. 10: asked right at the start of a signup, before the user has passed any factor
  2. 2A URL to the legal text: our Login UI only supports URLs

Controls can be updated or deleted via either the Admin UI, the Management API or the Agent API.

  1. 1The highest score: only sessions with your strongest factors pass it
  2. 2Not asked: your admins use the Admin UI, an internal application
  3. 3Only accounts with an enabled permission pass it: your tenant administrators
2026.11.22 | © Copyright 2026 Quasr BV