Docs

Sessions, IP allowlists and API tokens

See and end sessions, limit where each role can sign in from, make scoped API tokens, ask staff to confirm it is them before sensitive changes, and set the staff password rules.

Settings > Single sign-on, in the People and access group of Settings, holds the controls for how your team gets in and stays in, beyond passwords, two-factor and single sign-on. Its cards run down one page: Passwords and two-factor, Sessions, Password rules, Confirm it is you, Two-factor, New sign-in alerts, Single sign-on, Network access, Active sessions, Session locations, API tokens and Token rules. This guide covers sessions, network access, API tokens, Confirm it is you and the password rules. For two-factor and break-glass administrators, see Passwords and two-factor.

Sessions

A session is one sign-in on one browser or device, with how it signed in, the browser, the address and when it was last seen.

Your own sessions

Where you are signed in, on Settings > Password and two-factor, lists every browser and device signed in to your account, with This browser marked, when each was last seen and when it ends.

Sign out ends one session straight away. Sign out everywhere else ends every other session, including remote control and backup, and ends every API token and AI assistant connection that acts as you. For a session you do not recognise, press This wasn't me: it ends that sign-in at once, records it and takes you to change your password. The same link is in the email Tenvara sends when someone signs in from a new browser or country; see Passwords and two-factor.

Someone else's sessions

  • Settings > Users, then Sessions and tokens in the person's row menu, shows where they are signed in, their passkeys and the API tokens that act as them. Sign out everywhere ends all their sessions at once, including remote control and backup, and their tokens with them. A lost passkey can be removed here.
  • Active sessions on Settings > Single sign-on lists every live session of every active person, with Sign out beside each.

Note: Sign out on a single session ends that sign-in only: remote control and backup refuse it at once, and the person's API tokens carry on. Sign out everywhere ends the tokens too, for good.

How long sessions last

Under Sessions on Settings > Single sign-on:

  • Access token lifetime: how long a signed-in browser can act before it quietly renews. Shorter means a turned-off account stops working sooner everywhere.
  • Stay signed in for: how long someone stays signed in on a device without using it.
  • Password reset links last: how long the link in a reset email works.
  • Sign out when idle after: signs people out after this long without using the app, with a two-minute warning first. Off by default.
  • Longest a sign-in lasts: however much the app is used, people sign in again this many days after they signed in.

The idle timeout and the warning are described in Passwords and two-factor.

Where sessions are

Session locations can show roughly where each session is, using ip-api.com (free, no key) or ipinfo.io (with your own token). It is Off by default, so addresses are not sent anywhere.

Network access (IP allowlists)

Network access limits where each role can sign in from.

  1. Go to Settings > Single sign-on and scroll to Network access.
  2. Next to a role, press Add address and enter a single address or a range such as 203.0.113.0/24 (IPv4 or IPv6), with a Name such as "Office". Add my address adds the address you are on now.
  3. Turn on Only allow sign-in from the addresses below.
  4. Press Save network access.

A role with no addresses can still sign in from anywhere. The rules apply to password sign-in, single sign-on, every session renewal and every API request. People elsewhere cannot sign in, and running sessions stop at their next request.

  • Break-glass administrators are exempt is on by default and recommended, so a new office address or a mistake can always be put right by a break-glass administrator with their password and two-factor.
  • Tenvara refuses a change that would lock out the administrator making it from where they are now.

Warning: On a self-hosted install, if nobody can get in, run php artisan auth:network-access --off on the server to turn the rules off.

API tokens

API tokens let scripts and other systems use the Tenvara API. Each token acts as one person and can never do more than that person can do now: if the person loses a permission or is turned off, the token loses it too.

  • Personal access tokens are made by people for themselves, in the API tokens card of Settings > Password and two-factor.
  • Personal MCP tokens let an AI assistant that supports MCP work in Tenvara as you. They are made in the AI assistants (MCP) card on the same page and covered in The MCP server.
  • Integration tokens are made by an administrator for another system, in the API tokens card of Settings > Single sign-on with New integration token. An integration token acts as the administrator who makes it or as a service account, never as another person.

Make a token

  1. Press New token (or New integration token).
  2. For an integration token, choose who it Acts as: yourself, or New service account... to make an account for this integration alone. A service account has a name and a role that is not full access, never signs in, and uses a seat like any active account.
  3. Enter a Name that says what uses it, so you know what breaks if you revoke it.
  4. Choose Access:
    • Read: see everything the person can, except credentials. It cannot change anything.
    • Read and write: see and change everything the person can, except credentials.
    • Choose areas: None, View or Manage per area. The credentials vault is only reachable this way.
  5. Tick Administrator settings only if the token needs settings that only administrators can change.
  6. Choose when it Expires.
  7. Optionally, limit it to Only from these addresses.
  8. Press Make token, then copy it. It is shown once only.
Making a personal access token with read access, a 90-day expiry and an optional address limit
Making a personal access token with read access, a 90-day expiry and an optional address limit

Send it as a bearer token in the Authorization header. No token can reach sign-in settings, sessions, tokens, or users and roles. A token can only change things in an area its own access gives it manage in (Read and write covers every area the person has). Everything a token does is in the audit log, and making one emails the person it acts as.

Revoke in the token's menu stops it straight away and cannot be undone. The API tokens card filters by Active, Expired, Revoked and All.

When tokens end by themselves

API tokens, MCP tokens and the connections AI assistants made by signing in all end for good when:

  • the account is turned off, from Settings > Users or a handover;
  • the person is signed out everywhere, by themselves or by an administrator;
  • their password is changed or reset, or an administrator resets their two-factor.

Turning the account on again brings no token back: make new ones. Turning on or replacing your own two-factor does not end your tokens, so your integrations keep running.

Token rules

Token rules: usual expiry, longest allowed, warning before expiry and who can make tokens
Token rules: usual expiry, longest allowed, warning before expiry and who can make tokens

Under Token rules set the Usual expiry (days), the Longest allowed (days), how many days before expiry people are warned by email, whether Anyone can make personal access tokens (off means only administrators make tokens, as integration tokens) and whether to Allow tokens that never expire (not recommended). See Integrations and the API for the developer reference.

Confirm it is you

Confirm it is you asks staff to prove who they are again before the changes you choose, with their password, a two-factor code or single sign-on.

The Confirm it is you card: the seven kinds of change that can ask, and how long a confirmation lasts
The Confirm it is you card: the seven kinds of change that can ask, and how long a confirmation lasts

Under Ask before, tick any of: changing roles and what they allow, adding staff or changing their role or access, changing sign-in, making or widening API tokens and approving MCP clients, showing a saved password in the vault or a code, link or protected message in sign-up mail (by staff and in the portal), showing or changing a customer's agent uninstall token, and applying settings tried in test mode to everyone. Adding a passkey always asks. Do not ask again for sets how many minutes a confirmation lasts in that browser, so a run of changes asks once. Nothing is ticked by default; changes to your own two-factor always ask.

With the API tokens box ticked, the confirmation covers making any token, approving an AI assistant or a browser extension, and widening a token (giving it more access or more addresses). Renaming or narrowing a token never asks.

Password rules

Password rules decide what a staff password must be. By default it is at least 12 characters and nothing else.

Password rules: minimum length, character rules, history, expiry and lockout
Password rules: minimum length, character rules, history, expiry and lockout
  • Minimum length, and optionally Needs capital and small letters, Needs a number and Needs a symbol.
  • Remember earlier passwords: a new password may not be the current one or one of this many before it.
  • Passwords expire after: after this many days, signing in asks for a new password first. 0 means never, as current guidance recommends. Existing passwords count from when you turn it on, so nobody is locked out at once.
  • Lock an account after wrong passwords and Keep a locked account locked for: an administrator can unlock an account sooner from Settings > Users, and a password reset unlocks it too.

The rules apply wherever a staff password is set. Single sign-on and customer portal contacts are not affected.

Was this page helpful?

Thanks for the feedback.