Skip to content
TesseraDocs
MenuSign-up agreements

Sign-up agreements

Sign-up agreements let a realm ask people to accept your terms and privacy policy, and keep a record of who accepted which version.

View as Markdown

On this page

Sign-up agreements let a realm ask people to accept your terms and privacy policy, and keep a record of who accepted which version.

You set the agreement once in Tessera, and Tessera shows it, records the answer and tells your app. You do not build a checkbox, a version history or a store for it yourself.

What an agreement is

An agreement document holds:

  • a version, 1 to 64 characters, such as 2026-10
  • a terms_url and a privacy_url, both https
  • 1 to 8 statements, each with an id, text and required
  • an optional min_age, which appears only as a number inside a statement. Tessera does not collect a date of birth.

Statement text is plain text. The only braces allowed are the placeholders {terms} and {privacy}, which become links to your pages, and {min_age}, which becomes the number.

{
  "version": "2026-10",
  "terms_url": "https://example.com/terms",
  "privacy_url": "https://example.com/privacy",
  "min_age": 18,
  "statements": [
    {"id": "terms", "text": "I am {min_age} or older and I agree to the {terms} and {privacy}.", "required": true}
  ]
}

Where it applies

You can set a document on a realm, on an app, or on a single client. For a sign-in, the most specific one wins: the client's, then the app's, then the realm's. With no document, nothing is shown and nothing is added to tokens. Existing realms are unaffected until you set one.

What people see

  • Sign-up. The statements appear as checkboxes on the password sign-up form, in your own look. Required boxes are checked on the server. If one is left unticked, the form comes back with an error summary that links to it ("Tick each required box to continue.") and keeps the email and the boxes already ticked. That form exists only in realms with open sign-up and password sign-in. In an invite-only or passwordless realm, people meet the agreement at their first sign-in instead.
  • Sign-in. A person who has not accepted the current version sees an "Agree to continue" page after signing in, by any method, and before your app gets a code. If they accepted an earlier version, the page says "Updated terms". They can agree or decline. Declining returns access_denied to your app. A silent request with prompt=none returns interaction_required.

Changing the version, or adding a required statement, asks everyone again. Keeping the same version asks nobody.

What gets recorded

Each acceptance stores the person, the version, the statements ticked, the URLs shown, the client, where it happened (signup or sign_in) and the time. For evidence it also keeps the request's IP address and browser. Admins can read those, and the person's own view leaves them out. A new version adds a record and never changes an old one. Records survive the deletion or replacement of the document and are deleted with the person. Every acceptance is written to the audit log as agreement.accepted.

What your app gets

A token issued to a person who accepted the current version carries an agreements claim, in the access token, the ID token and userinfo.

{
  "agreements": {
    "version": "2026-10",
    "accepted_at": 1790000000,
    "statements": ["terms"]
  }
}

The claim is absent when no document applies or the person has not accepted the current version.

Set one

tessera agreements set --version 2026-10 \
  --terms-url https://example.com/terms \
  --privacy-url https://example.com/privacy \
  --min-age 18 \
  --statement "terms=I am {min_age} or older and I agree to the {terms} and {privacy}."

Use --client <client_id> or --app <key> to set it on one client or app. --dry-run checks the document without saving, and says whether everyone would be asked again. tessera agreements get --client <client_id> --effective shows which document applies. tessera agreements accepted <user-id> lists a person's acceptances.

Admins need tessera:agreements:write to set a document and tessera:agreements:read to read it.

Seeing and deleting records

A signed-in person can see their own acceptances (version, statements, URLs, source, client and time) from GET /realms/<realm>/account/agreements with their account token. They can delete their account from the account app, and their acceptance records go with it.

Planned. A data export of a person's acceptance records, and the early-access agreement checkbox on the workspace invite page, are not available yet.

What it does not change

The consent step for third-party apps is a different thing and is unchanged. Sign-ins on the device page and refresh-token use are not gated by agreements.