Skip to content
TEBHOS API

Sign-in methods

People sign in to your instance with a username or with an email address. You choose one during setup, and it can’t change once the first account exists.

People create an account with a username and a password. The instance never asks for an email address, and features that send email, such as address verification and password resets, are off.

When someone forgets their password, they use their recovery kit. The app shows the kit when the account is created, and people can make a new one in their account settings. Using the kit sets a new password, signs the account out everywhere and gives the person a new kit.

People create an account with an email address, a username and a password. The instance sends email to verify addresses and reset forgotten passwords. rexctl asks for your email server during setup, and rexctl email set changes it later. Until email is set up, nobody can reset a forgotten password by email, and you can create a reset link for them.

People can sign in through your own identity provider, such as Authentik or Keycloak, over OpenID Connect. Set it up in the admin panel on the “Instance Config” page, in the “Single Sign-On (SSO)” card. Fill in the details from your provider, turn on “Enable SSO” and register the “Redirect URI” that the card shows with your provider.

With “Automatically provision users on first SSO login” on, the first sign-in from someone new creates their account. In single-community mode, “Community Roles From Groups” maps groups at your provider to roles in the community, and each SSO sign-in adds or removes those roles.

“Require SSO” turns off password and passkey sign-in and local registration for everyone. Before you turn it on, make sure at least one admin can sign in through your provider.

On a username instance you can turn on “Usernames come from your sign-in provider” (sso.username_from_provider in rexctl). It’s off by default and doesn’t depend on Require SSO. While it’s on, each SSO sign-in sets the person’s username from the preferred_username claim, and people who sign in with SSO can’t change it in TEBHOS.

Usernames can only use letters, numbers and underscores, up to 32 characters. TEBHOS keeps the part before any @, turns accented letters into plain ones, turns dots, dashes and spaces into underscores, drops other characters, removes the word tebhos and keeps the first 32 characters. For example, [email protected] becomes john_doe. This means different people can end up with the same username. [email protected] and [email protected] both become alice, and whoever signs in first keeps it. If your provider sends an email address or UPN as preferred_username, such as Entra ID with more than one domain, map that claim to a value that is unique across your tenant.

If the claim is missing, isn’t usable or belongs to someone else, the person keeps their current username. A rename in the admin panel lasts until the person’s next SSO sign-in. Turn off username editing at your provider, or anyone who can edit their own preferred_username can take any free name here.

On a username instance, or an email instance that doesn’t send email, you can create a reset link for someone who has lost their password. The “Create Password Reset Link” button on the account’s page in the admin panel does the same.

Terminal window
rexctl users reset-link alex

The link works once and expires after an hour, and anyone who has it can set a new password for the account. Send it to the person over a channel you trust. Creating the link deletes their recovery kit, and they can make a new one in their account settings.

If you lose access to your own admin account on such an instance, rexctl users reset-link works on the machine without signing in. On an email instance that sends email, reset your password from the sign-in page.

The “Sign-in & new accounts” card on the “Instance Config” page has the other settings for new accounts, such as letting people start with just a display name and deleting accounts that have no way to sign back in.