Sign-in methods
A realm decides how its people prove who they are, and Tessera enforces the choice on the server.
On this page
A realm decides how its people prove who they are, and Tessera enforces the choice on the server.
Passwordless sign-in is the default for realms created in the console. You do not change your app to use it: the app still sends people to the realm's issuer and gets a standard token back.
The methods
| Method | What the person does |
|---|---|
| Passkey | Uses Face ID, Touch ID, Windows Hello or a security key. |
| Email code | Types a 6-digit code sent to their address. The code is good for 10 minutes. |
| Email link | Taps a one-time link sent to their address, in the browser where they asked for it. |
| Password | Types an email and password. Off in passwordless realms. |
| External provider | Signs in with another service, such as GitHub or an OpenID Connect provider. |
A realm made in the console starts with the passwordless_links preset (passkey, email code and email link) and email-first sign-in. See the sign-in page.
Presets
| Preset | Methods |
|---|---|
passwordless_links |
passkey, email code, email link |
passwordless |
passkey, email code |
email_code |
email code only |
password_passkey |
password, passkey, email link |
Presets keep the realm's external-provider setting as it is. You can also give an explicit list of methods.
The sign-in page
A realm with email-first sign-in shows one email field and Continue. A realm made in the console or through the admin API starts this way unless you turn it off; older realms keep their classic page until you switch it on. A person with a passkey sees it offered in the email field, and Sign in with a passkey is also on the page. The passkey is never chosen from the address, so the page reveals nothing about who has an account. A realm that still allows passwords adds "Use a password instead".
After Continue, the address's domain decides what happens, never the account:
- A domain you have routed to an external provider sends the person there, after a short page that says which provider and offers "Use a different email" and "Email me a sign-in link instead". Routes are rules on the realm (up to 200), set with
PUT /admin/v1/realms/<realm>/sign-in-domains/<domain>and a body such as{"provider": "google"}. The providers aregoogle,apple,githubandmicrosoft. Well-known consumer domains such as gmail.com are routed only when you turn onemail_first_well_known_domains. - Every other address gets one email with a 6-digit code and a sign-in link, and lands on the code page. The person types the code on any device, or opens the link in the browser where they asked. A link opened in another browser does not sign anyone in and tells the person to type the code instead. Asking for a new email replaces the old code and link.
The answer is the same for a known, an unknown and a disabled address. An unknown address is emailed only when the realm's sign-up policy is open, and the account is created only when the code or link is verified. In an invite-only realm the person needs an invite. See realms.
Email-first sign-in works only while email code sign-in is offered; otherwise the classic page is shown. Turn it on or off with email_first_sign_in on the realm. Turning it on answers 409 when email codes are not allowed or email delivery is not set up.
Passkeys
A passkey with user verification (the device's lock or biometric) counts as two factors. Passkeys are tied to the address the person signed in on. If you move a realm to your own domain, passkeys made on the old address do not work on the new one. See domains.
After a first code or link sign-in, a person without a passkey is offered one. They can say "Not now", and that is remembered for 90 days.
Optional second step
Any person can turn on an authenticator app (TOTP) in the account app, with 10 recovery codes. It is optional by default. A realm administrator can require it with mfa_policy: required; people without a second factor then enrol at their next sign-in, and a passkey already counts.
What your app can see
The ID token has amr, which methods were used, and acr, a level. For example an email code gives amr: ["email_otp"] and a passkey gives ["webauthn"]. If you want a stronger sign-in, ask for it with acr_values or max_age. See claims.
Email must work
Email code and email link need email delivery. While a realm has none, those methods are left out and the page does not offer them. A change that would leave a realm with no usable method is refused with a 409.
External providers
Tessera supports signing people in through an external provider as an optional extra. Providers are never the main path.
Planned. The console does not offer external providers yet. The sign-in methods page lists them as unavailable. A realm administrator can connect an OpenID Connect provider with
tessera federation oidc ensureor the admin API.
Change the methods
In the console, open a realm and choose Sign-in methods. With the admin API: PUT /admin/v1/realms/<realm>/sign-in-methods with {"preset": "passwordless_links"}. A realm without password sign-in answers 403 on password routes, hides the password and reset pages, and cannot create a password by any route.