Skip to content

Features

This page covers what a client can do, how actors sign in and sign out, and what happens to their accounts over time.

How Who Approved
Added A manager, in /manage. /manage shows the secret once. Yes
Handshake A person approves the app at /handshake. The app’s server then trades a one-time token at /register for its credentials. Yes
Declared in a file The operator, in the file named by MASKS_CONFIG. Yes
SAML application A manager, in /manage. Yes
Enrolled An approved app, for a machine of its own. Yes
Self-registered The app, over dynamic registration, within the tenant’s ceiling. No
Metadata document The app. It uses the URL of a document that describes it as its client_id. No

Only an approved client may:

  • hold a masks: scope
  • sign in as itself
  • receive a delegation
  • name resources it serves. A self-registered client that names resources is refused.

A client always grants its required_scopes. It grants its allowed_scopes when asked. A request that names no scope gets all of them.

Archiving a client stops it from signing anyone in and revokes its live tokens. masks keeps its record.

By default:

  • An access token lasts an hour.
  • A refresh token lasts 30 days unused, and each refresh starts the 30 days over. masks issues a refresh token only when the client is granted offline_access.
  • A sign-in’s refresh tokens stop 90 days after the sign-in, however often they are used. The next refresh fails with invalid_grant, and the person signs in again.

A client’s General tab sets its own lifetimes:

  • Access tokens from 1 minute to 1,440 minutes (a day).
  • Refresh tokens from 1 day to 400 days unused. The manage API accepts as little as 5 minutes.
  • Refresh tokens from 1 day to 400 days after the sign-in. The manage API accepts as little as 5 minutes.

masks knows how to set up some apps. To add one:

  1. Choose Clients, then Add client, then A known product.
  2. Pick the app under Product.
  3. Enter Its address.

masks then:

  • registers it with the redirect URIs and scopes that app expects
  • sets its address as the Home page, so it appears under Your apps
  • lists each value to enter in the app, under the app’s own name for it, including the client secret
App Needs beyond its address
Grafana, Nextcloud, Immich, Outline, Audiobookshelf, Portainer, Vaultwarden, Mealie, Open WebUI, Headscale, Home Assistant (OIDC integration), BookStack, MinIO, Argo CD, Synology DSM Nothing
Gitea, Forgejo, Paperless-ngx, Proxmox VE, Jellyfin (SSO plugin), Matrix (Synapse) Name it uses for masks. This is masks unless you change it.
Wiki.js Name it uses for masks. Wiki.js shows it in the strategy’s callback URL. Copy it from there.
Tailscale Nothing. Its address is https://login.tailscale.com. See signing in to a tailnet.
Any app behind Caddy, Traefik, or nginx Nothing. See forward authentication. Its rules can treat paths, methods, networks, and groups differently.

Grafana, Nextcloud, Gitea, Forgejo, Paperless-ngx, Proxmox VE, Jellyfin, Mealie, Open WebUI, Headscale, Home Assistant, BookStack, Wiki.js, MinIO, and Argo CD read the groups claim. In Grafana, Gitea, Jellyfin, Mealie, Open WebUI, Headscale, Home Assistant, and Argo CD, the settings make the members of a group called admins the app’s administrators. In MinIO, name each group after the MinIO policy it should hold. In every other app, choose the administrators in the app.

Tailscale finds an identity provider through WebFinger, a lookup on the domain of a person’s email address. masks answers it at /.well-known/webfinger for every account on the tenant’s host, so the tenant’s host has to be the domain of the email addresses people sign in with. An account whose email is ada@id.example.com needs masks at https://id.example.com.

  1. In masks, add Tailscale as a known app. Enter https://login.tailscale.com as its address and keep the client ID and secret masks shows.
  2. In Tailscale, start a new tailnet with a custom OpenID Connect provider, enter an email address on the tenant’s host, and paste the issuer URL, client ID, and client secret.
  3. Sign in. Tailscale asks masks, and each person on the tenant joins the tailnet with their own account.

Headscale, the self-hosted control server, does not need WebFinger. Add it as a known app with its own address.

An app that has never registered can use a URL as its client_id. The URL points to a JSON document the app publishes about itself. MCP clients work this way. masks fetches the document the first time the URL arrives, and registers the client as self-registered.

{
"client_id": "https://app.example.com/oauth/client.json",
"client_name": "Example App",
"redirect_uris": ["https://app.example.com/callback"],
"scope": "openid profile"
}

The URL:

  • uses HTTPS
  • has a path
  • has no fragment, no username or password, and no . or .. segments

The document:

  • names its own URL as client_id
  • is at most 5 kilobytes
  • holds no client_secret, client_secret_expires_at, registration_access_token, or registration_client_uri

The client signs in with PKCE alone, or with private_key_jwt. PKCE (Proof Key for Code Exchange) proves that the same client started and finished a sign-in, without a secret.

masks keeps a copy of the document:

  • for as long as its Cache-Control header allows, from five minutes to a day
  • for an hour when the header gives no max-age

When masks cannot fetch the document, or refuses it, the client cannot sign anyone in. masks tries again after five minutes. A private address is refused, as for every call to another server.

A manager can archive the client to refuse it.

Discovery is the document at /.well-known/openid-configuration that tells apps what masks supports. It sets client_id_metadata_document_supported to true while the tenant allows dynamic registration. With registration off, masks fetches no new documents. A copy it already holds works until the copy expires.

A page on another site can read discovery, the signing keys, and the answers from /token, /revoke, /userinfo, and /avatars. Browsers send no cookies with these requests. A site with no server can sign people in this way. See static sites.

A client proves who it is at the token endpoint. Its token_endpoint_auth_method says how.

token_endpoint_auth_method
client_secret_basic The secret in a Basic Authorization header. The default.
client_secret_post The secret in the form body.
private_key_jwt An assertion signed with the client’s own key. masks checks it against the client’s jwks or jwks_uri.
none A public client. It proves itself with PKCE.
  • masks stores only a hash of a secret.
  • A client registered with client_secret_basic or client_secret_post may send its secret either way.
  • A secret client cannot send an assertion, and a private_key_jwt client cannot send a secret.
  • A private_key_jwt assertion is accepted once, and expires within an hour.
  • When an assertion uses a key masks does not know, masks fetches the jwks_uri again. A client can rotate its keys without telling masks.

masks asks each actor once before a client receives anything. It asks again when:

  • the client asks for more scopes or resources
  • the client passes prompt=consent
  • the client sends authorization details the actor has not approved
  • the sign-in is a device sign-in

Some rules change when masks asks:

  • Approving a handshake is the consent of the actor who approved it, and of nobody else.
  • A manager can turn off Ask actors to consent for an approved client, such as a first-party app. A self-registered client always asks.
  • A manager can set Consent lasts on a client’s General tab, from 1 to 400 days. The manage API accepts as little as 5 minutes. Once a consent is that old, masks asks the actor again, and a refresh fails with invalid_grant. Without a lifetime, a consent lasts until it is revoked.

The sub claim is the identifier a client sees for an actor.

  • A public client sees the actor’s own identifier as sub.
  • A pairwise client sees an identifier made for its sector. Two sectors cannot match up their actors.
  • The sector is the host of the client’s sector_identifier_uri, or the host of its redirect URIs when it has none.
  • A pairwise client with redirect URIs on more than one host must register a sector_identifier_uri that lists them all.

A service that acts for no person, such as a nightly job, uses the client_credentials grant:

Terminal window
curl -u "$CLIENT_ID:$CLIENT_SECRET" https://acme.auth.example.com/token \
-d grant_type=client_credentials \
-d scope="xixo:catalog:read"

A manager turns on Signs in as itself (client_credentials) for an approved client. The token:

  • names the client as sub
  • comes with no refresh token
  • never holds a scope that acts for a person, such as openid or masks:manage

An approved app that has claimed a namespace can enroll machines of its own. An example is an agent the app installs on each computer in a home. Nobody approves each machine in a browser.

The app asks /enrollments for an initial access token. It authenticates the same way it does at the token endpoint:

Terminal window
curl -u "$CLIENT_ID:$CLIENT_SECRET" https://acme.auth.example.com/enrollments \
-d scope="xixo:agent" \
-d client_name="nas" \
-d expires_in=900
{ "initial_access_token": "…", "expires_in": 900, "scope": "xixo:agent" }
  • Every scope must fall under one of the app’s namespaces.
  • A prefix is refused, and so is any masks: scope.
  • The token lasts from a minute to a day. The default is 15 minutes.
  • The token is spent the first time it registers a machine.
  • Discovery publishes the endpoint as enrollment_endpoint.

The machine makes its own keys. It registers the public half, with the token as its bearer:

Terminal window
curl https://acme.auth.example.com/register \
-H "Authorization: Bearer $INITIAL_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"client_name": "nas", "jwks": {"keys": [ … ]}}'

masks answers with a new client. It is approved for the token’s scopes and the app’s resources. The new client:

  • is named by client_name in the registration, then the token’s client_name, then “A machine”
  • authenticates only with private_key_jwt, against those keys
  • uses only the client_credentials grant
  • gets access tokens that last 10 minutes
  • binds every access token to a key with DPoP, so a token works only for whoever holds that key

The answer holds a registration access token and no secret. The private key never leaves the machine.

  • A registration without jwks, or with a jwks_uri, is refused. The token stays unspent.
  • A machine cannot change its own registration. masks refuses a PUT with 403.
  • A machine can remove itself with a DELETE to its registration_client_uri.

In the manage API, the new client names the app as enrolledBy. Archiving the app archives every machine it enrolled and revokes their tokens. The app’s page in the console lists its machines under Usage, with when each one last signed in, and a manager can revoke one there.

To unenroll a machine it enrolled, the app sends a DELETE to the same endpoint. It authenticates the same way:

Terminal window
curl -u "$CLIENT_ID:$CLIENT_SECRET" -X DELETE \
https://acme.auth.example.com/enrollments/$MACHINE_CLIENT_ID

masks archives the machine, revokes every token it holds, and answers 204. Asking again gets the same answer. A client the app did not enroll is refused with 404.

A policy sets how actors sign in. A sign-in uses the first of these that exists and is not archived:

  1. The organization’s policy.
  2. The client’s policy.
  3. The tenant’s default policy.
  4. The built-in policy.

Managers edit policies under Settings, then Policies, in /manage. A policy’s form has these parts:

Part Holds Default
Signup Open, which lets people create their own accounts. Email domains that signup and provider sign-in accept. Confirmation of a new account: None, Emailed code, Emailed link, or Manager approval. Signup scopes. Hide who has an account. Browser check. Open off, any domain, None, the standard scopes, Hide who has an account off, Standard
Account Whether an account has a Nickname, an Email, and a Phone: Off, Optional, or Required. Confirmed email and Confirmed phone, which ask an actor to confirm each one before they sign in. Nickname Optional, Email Required, Phone Off, neither confirmed
Sign-in The first factors. The minimum password length. Refuse common passwords, from a list of about 47,000. Require a password at signup, which stops a passkey alone. The providers to offer. Password, Passkey, and Provider. 8 characters. Refuse common passwords on. All providers.
Second factor The second factors an actor can set up. Required for everyone, not just managers. Asked again at a sign-in to a client when the session did not use one. Authenticator app, Passkey, and Backup codes. Both switches off.
Risk The scores that ask for a second factor or refuse a sign-in, and Refuse passwords found in known breaches. See risky sign-ins. Never, and breached passwords allowed
Sessions See how long a session lasts. 14 days, no idle limit
  • Emailed code and Emailed link confirmation, and Hide who has an account, need Email to be Required.
  • Hide who has an account sends an email address a code before anything else. A browser already signed in to that account, or a device it trusts, skips the code.
  • An organization’s Email domains also refuse a sign-in to that organization from an address outside them.
  • The manage API names each setting in the SignInPolicy type.

A policy hides every first factor it does not list. Its second factors decide what an actor can set up. A second factor an actor already has works under any policy.

The tenant’s default policy always keeps a password or a passkey, so managers are never locked out. Whatever the policy says, a manager must set up an authenticator app or a passkey as a second factor.

The Browser check makes the browser solve a hashing puzzle before it can sign up. This makes creating accounts in bulk slow and costly.

Level Time on a laptop
Off None
Light A fraction of a second
Standard About a second
Strong Several seconds
  • Nothing goes to another service.
  • Without JavaScript the browser cannot solve the puzzle, so signup says it needs JavaScript.
  • A puzzle lasts ten minutes, and is accepted once, for the sign-in it was made for.
  • The first account on a tenant skips the check. Accepting an invitation does not ask for it.

A first factor is how an actor first proves who they are.

Factor
Password Checked against the policy’s minimum length and the common passwords.
Passkey WebAuthn. It also counts as a second factor when the authenticator verified the person.
Provider An account at Google, Okta, a SAML provider, and others. See single sign-on and SAML.
Emailed code A six-digit code sent to the account’s email address, with no password. See signing in with an emailed code.

When the policy offers passkeys at signup and the browser can make one:

  • The credentials step offers A passkey beside A password, and starts on the passkey.
  • An account made with a passkey has no password.
  • The passkey counts as both factors. This includes the second factor a manager or a policy requires.
  • The person can set a password later from Password on their account page, or through a reset link sent to their email address.

When the browser supports passkey autofill, the sign-in field lists the actor’s passkeys among its suggestions. Choosing one signs in without typing a nickname or address.

masks names each passkey after its authenticator, using the FIDO Metadata Service. It marks a passkey whose model the service reports as compromised. It refuses a sign-in from a passkey that looks copied.

A policy that offers Emailed code shows Email me a code instead on the password step. When the policy offers no password, it shows only Email me a code.

The tenant’s default policy keeps a password or a passkey. To offer a code alone, set it on a policy for the apps that want it.

  • The code has six digits, lasts 10 minutes, and allows five attempts.
  • Another code can be sent after 30 seconds, within the rate limit.
  • An email address or nickname with no account gets the same screen and no mail, so the form does not show who has an account. An account that has reached its limit of codes gets the same.
  • An account that has not accepted its invitation gets no code.
  • An account with a password and an unconfirmed email address gets no code. This stops someone from taking over an address they do not own.
  • Signing in with a code confirms the account’s email address.
  • Under a policy that hides who has an account, the actor proves the address first.
  • The code proves the inbox. It never counts as a second factor, and the email second factor is not offered after it.

A second factor is a second proof, asked for after the first factor. The amr claim lists how the actor signed in.

Factor amr
Authenticator app A time-based code the app shows. otp
Passkey A passkey whose authenticator verified the person. user
Backup codes One-time codes, for when the other factors are lost. otp
Email codes A six-digit code sent to a confirmed email address. otp
SMS codes A six-digit code sent by text message through the tenant’s SMS service. sms
Approval from a trusted device The actor enters a code shown on the new sign-in into the account page of a device they trusted.

A person turns email or SMS codes on from their account page. This needs:

  • a confirmed email address or phone number
  • a policy that offers them, unless the person is a manager
  • a mail or SMS service the tenant can send with

Once on, a code is asked for at every sign-in, under any policy. Changing the address or phone number turns its codes off. So does a password reset through an emailed link, for email codes. An email code does not confirm a sign-in whose first factor was a provider.

A person adds or removes an authenticator app on their account page. Once they have an authenticator app or a passkey, they can make a new set of backup codes there.

  • Each of these, and turning email or SMS codes on, asks for a sign-in within the last 15 minutes.
  • Adding the first authenticator app also makes backup codes when the account has none.
  • New backup codes replace the old set.
  • Removing the authenticator app drops the backup codes, unless a passkey remains.

After any second factor except a backup code, the actor can ask masks to trust the device. masks then skips the second factor on that device for 30 days, or until the device is signed out.

An actor who gets past the first factor but cannot use any second factor can ask a manager for help.

  1. The actor chooses I cannot use any of these. When none of their second factors works in this sign-in, the button reads Ask a manager for help.
  2. masks records recovery.requested.
  3. masks mails every manager holding masks:manage or masks:manage:support who has a confirmed email address.
  4. masks sends the actor a security email, so someone who stole only the password gets noticed.

Asking again within a day does nothing.

In /manage, the overview counts who asked. The Asking for help filter on Actors lists them. On the actor’s page, a manager chooses one of these:

  • Dismiss drops the request.
  • Reset second factors removes the authenticator app, backup codes, passkeys, and email and SMS codes. It forgets every trusted device and signs the actor out everywhere. Their next sign-in asks for a new second factor when the policy requires one.

A device that cannot run a browser, such as a television or a command-line tool, uses the device grant:

  1. The device asks /device_authorization for a code.
  2. It shows the person the code and the /device address.
  3. It polls /token until the person approves on another device.
Poll response Do
authorization_pending Keep polling.
slow_down Add five seconds to the interval.
access_denied Stop. The person declined.
expired_token Request a new code. Codes last 15 minutes.

A user code is eight letters with no vowels, such as BCDF-GHJK. masks ignores case and dashes.

Sign-in, consent, the account pages, mail, and /manage are in English, French, Spanish, and German. masks picks the language in this order:

  1. The first of the four languages that an app names in ui_locales.
  2. The first of the four languages that the browser’s Accept-Language header asks for.
  3. English.

Dates and times follow the same language.

An app sends the browser to /logout. Discovery lists this as the end_session_endpoint.

GET https://acme.auth.example.com/logout
?id_token_hint=eyJ…
&post_logout_redirect_uri=https://app.example.com/signed-out
  • post_logout_redirect_uri must be one the client registered.
  • A GET without an id_token_hint for the signed-in actor shows a confirmation screen first. A link on another site cannot sign someone out.

Each server SDK protects the app’s own sign-out too. It refuses a sign-out from another site with 403. A GET from a browser that sends no Sec-Fetch-Site header, such as Safari before 16.4, gets a page with a Sign out button that posts the sign-out. See signing out for Rails, JavaScript, Python, and Go.

When a session ends, masks tells every app the actor used in that session. This is back-channel logout.

  • masks posts a signed logout+jwt to each app’s backchannel_logout_uri.
  • masks tries each delivery five times. It records a delivery that still fails in the actor’s activity.
  • masks never posts to a private address unless the operator allows it. See calls to other servers.
  • SAML applications hear through single logout.
  • A session is one signed-in browser.
  • A device is the browser itself. masks knows it by a cookie that lasts 400 days.
Action Ends
Revoke a session That sign-in.
Sign a device out Every session and token on it, and its trusted second factor.
Sign an actor out Every session, refresh token, and access token on every device, and every trusted second factor.
Block a device Every request from it, before any password is checked.

/manage also lists devices that never finished signing in, under Never signed in, so you can still block them.

Signing an actor out everywhere is also what a password reset, a second-factor reset, a suspension, and a session-revoked signal from a provider do. Access tokens already issued stop working at once, so an app that checks a token with masks is refused on its next request.

A session lasts 14 days by default. A sign-in policy changes this under Sessions.

Setting Effect
Last … after signing in A session started under the policy expires this long after signing in. A client covered by the policy asks the actor to sign in again in any older session.
End after … idle A session started under the policy ends after this long with no request. masks records session.expired. A client covered by the policy asks the actor to sign in again after a gap this long.
  • /manage offers lifetimes from an hour to 90 days, and idle limits from 15 minutes to a day. The manage API accepts anything from 5 minutes to 400 days.
  • The idle limit must be shorter than the lifetime.
  • A refresh token issued in a session that either setting limits stops working when the session ends. This includes when the actor signs out.

An organization is a customer inside a tenant. Each member holds a role there. An app that asks for the organization scope signs an actor in as a member of one organization. See organizations.

A group is a named set of actors in a tenant, such as admins or family. An actor can be in any number of groups.

To set up groups, a manager holding masks:manage:security or masks:manage:

  1. Adds groups under Settings, then General, then Groups.
  2. Puts actors in them on each actor’s Access tab.

An app that asks for the groups scope receives a groups claim. The claim is in the ID token and in the userinfo answer. It lists:

  • the key of each group the actor is in
  • each organization role they hold, written as key:role
{ "groups": ["acme:owner", "admins", "family"] }

Every actor may grant the groups scope, whatever their own scopes are. Apps that map roles from a claim read this one. In Grafana, for example:

[auth.generic_oauth]
scopes = openid profile email groups
role_attribute_path = contains(groups[*], 'admins') && 'Admin' || 'Viewer'

A group can fill itself. Open the group under Settings, then General, then Groups, and choose Fills from:

Fills from Who is in the group
People added by hand The people a manager adds. This is the default.
A rule Everyone who matches every condition, up to five.
A provider Everyone whose last sign-in through that provider listed a group you name.
Other groups Everyone in any of the parent groups or organization roles, written as key:role.

A rule has two kinds of condition:

  • Email address ends with a domain, such as example.com. Only a verified address counts.
  • Profile field equals a value. Only a profile a directory sets counts, because people cannot change it. Someone who edits their own name does not join a group by doing so.

masks fills the group when you save it. After that:

  • a rule group follows each profile change and is checked again every hour
  • a provider group follows each sign-in through the provider
  • a nested group follows each change to its parents and to the organization roles it names

Refresh now fills a group at once.

On an actor’s Access tab, a person a source put in a group shows what put them there, and their box cannot be cleared. The source decides when they leave. A person a manager adds by hand stays in the group even when the source would leave them out.

The groups claim, who may sign in to an app, and forward auth treat every member the same, however they joined.

A nested group cannot sit inside itself, directly or through its parents. masks refuses that change.

On a client’s Access tab, Who may sign in limits the client to some actors. Tick groups, or type Organization roles written as key:role, separated by commas or spaces.

  • Anyone else who signs in to it lands on a page on masks that says the sign-in was refused. The page offers Ask for access and a link back to the app, which carries access_denied. A request made with prompt=none is answered with access_denied straight away. The refusal appears in their activity.
  • Taking someone out of the group ends their next refresh with invalid_grant.
  • A client with nothing ticked lets everyone in.

Somebody turned away from an app can press Ask for access. masks keeps one open request per person and app, and a second press says the request is waiting. After a decision, they can ask again after an hour.

A request is decided in one of two places:

  • A manager holding masks:manage:security or masks:manage opens the client’s Access tab. Access requests lists each person waiting. Approve puts them in the first group the client allows, or the one the manager picks, and Decline turns them away.
  • When the client allows an organization role, such as acme:billing, an owner of that organization sees the request under the organization on their own account page. Approve makes the person a member with the role the owner picks. No manage role is needed.

Either way the person gets an email, Access granted or Access declined, and the decision is recorded as access.granted or access.declined in their activity. Both emails can be customized under Settings, then Emails. Requests older than 30 days are removed by the nightly cleanup.

A manager suspends, restores, or deletes an actor in /manage. A directory does the same over SCIM.

  • Suspending signs the actor out everywhere. It refuses every sign-in until a manager or the directory restores them.
  • Deleting signs the actor out everywhere, and tells apps that registered for back-channel logout. It removes their passkeys, consents, connected accounts, and photo.
  • Nobody can suspend or delete the last manager.

A tenant can suspend accounts nobody uses, and later delete them. To set this up in /manage:

  1. Open Settings, then Policies, then Auto-deletion.
  2. Set a period for Suspend, Delete, or both. Leave either at Never to turn it off.

When both are set, deleting comes later than suspending.

  • Signing in counts as using the account. So does an app refreshing a token for the actor.
  • masks emails a warning 30 days before each step. It takes the step no sooner than 30 days after the warning.
  • Turning the settings on or changing them gives every account a fresh 30 days.
  • Signing in before a suspension keeps the account. Once it is suspended, only a manager can restore it. The warning before deletion says so.
  • With Suspend set, masks deletes only accounts suspended for being idle.
  • With Suspend at Never, masks deletes an idle account directly.
  • An account that a manager or a directory suspended stays until they decide.
  • An account with no confirmed email address cannot be warned. It follows the same schedule.
  • masks never touches the last manager, accounts provisioned over SCIM, or invitations nobody has accepted.
  • masks records each warning, suspension, and deletion as an event.

masks emails a link to invite someone, to reset a password, and to confirm an email address. Under Links in /manage, an owner sets how long each one stays valid. A link already sent keeps the lifetime it was sent with, and the email that carries it says how long it lasts.

Link Default Range
Invitation to an account 7 days 1 hour to 30 days
Invitation to an organization 14 days 1 hour to 30 days
Password reset 30 minutes 5 minutes to 1 day
Email confirmation 2 days 1 hour to 14 days

An invitation to an organization counts from when it was last sent, so a change applies to open invitations too. masks removes an invitation nobody accepted once twice its lifetime has passed. Each tenant on a server keeps its own four values, and MASKS_CONFIG can declare them.

The top of a person’s account page shows Your apps. It lists the apps the person may sign in to:

  • every approved client that has a Home page
  • every SAML application that can start a sign-in itself

Each one opens the app, or starts the SAML sign-in through masks. A client nobody approved never appears.

Some apps check a password and nothing more: a media server on a TV, a NAS, a calendar sync. They cannot ask for a second factor. An app password lets one of them sign in as a person who has a second factor, without turning the second factor off.

A manager turns on Accept app passwords on the client’s Access tab first. Then a person:

  1. Opens App passwords on their account page. The section appears once an app they may sign in to accepts them.
  2. Enters a name, such as Jellyfin on the TV, and picks the app.
  3. Chooses Make app password. A sign-in older than 15 minutes is asked again first.
  4. Copies the password. masks shows it once and keeps only a digest, hashed as account passwords are.

An app password is 24 letters and digits in groups of four. Dashes and case do not matter when it is entered.

What it does:

  • It signs in over LDAP and forward auth, for the app it was made for and no other.
  • It stands in for the password and the second factor together. That is the point: the app never sees the account password, and the second factor stays on for everything else.
  • It never signs in on the sign-in page, at /token, or to /manage.
  • Wrong guesses count against the same limits as the sign-in page. See rate limits.

The list shows each app password’s name, app, when it was made, and when it was last used. Revoke ends one on its own. The account password and passkeys stay as they are. An account holds up to 20. Suspending the account revokes them all.

masks records App password made, Signed in with an app password once a day per app password, and App password revoked. The first and last are mailed under the security emails for second factors.

A person changes their name and nickname under Name on their account page.

To change an email address or phone number:

  1. Enter the new email address or phone number.
  2. Enter the six-digit code masks sends to it.

The change takes effect once the code is entered.

  • Whether another account already uses the address shows only after the code is entered.
  • The change asks for a sign-in within the last 15 minutes.
  • The change turns off sign-in codes sent to the old address.
  • When the old email address was confirmed, masks mails it about the change.
  • A person can also remove their phone number, unless the sign-in policy requires one.

An account that signs in only with a passkey or another account can set a password from Password, after a recent sign-in. Setting it signs out every other session and ends the tokens they hold.

Changing a nickname asks for a sign-in within the last 15 minutes. A nickname that is given up, by a rename or by deleting the account, is held for 30 days. Nobody else can take it in that time, and the account that gave it up can take it back. Apps behind forward auth and LDAP know an actor by their nickname, so the hold keeps a new account from being taken for the old one. A manager or a directory can give the held nickname to someone else at once.

Accounts a directory provisions over SCIM keep the name and addresses the directory gives them.

When a manager changes someone’s confirmed email address in /manage, masks mails the old address as well.

A person downloads everything masks holds about them as a JSON file. They choose Download under Download your account on their account page.

The file holds:

  • their profile
  • which factors they use
  • their passkeys
  • their organizations and roles
  • their connected accounts, and what each app was allowed to do with them
  • the apps they consented to
  • their devices
  • every event about them that the tenant still keeps

It holds no password hash, authenticator secret, backup code, token, or key.

  • masks records each download as account.exported.
  • masks emails the person, unless they turned off the Account group under Emails we send you.
  • A person can download their account five times an hour.

A person deletes their own account at the bottom of their account page. To confirm, they type its nickname, or its email address when it has no nickname.

The last manager cannot delete their own account. Neither can an account provisioned over SCIM.

Downloading and deleting both ask a person who signed in more than 15 minutes ago to sign in again first.