Signing in with SSO

If your server has its own sign-in service (single sign-on, through OpenID Connect), you can use it to sign in to Tickory as well: one account and one password for all your services. The administrator turns it on; you link your account once.

For users

Linking your account

If you already have a Tickory account with a password, you link it once to your account at the sign-in service:

  1. Sign in with your username and password.
  2. At the bottom of the sidebar, click your name and choose Account, password and devices.
  3. Open the part “Sign in with …” (with the name of your sign-in service). Enter your password, and the code from your authenticator app if you use two-step verification, and choose “Link with …”.
  4. You go to the sign-in service. Sign in there; afterwards you come back to Tickory by itself, with a message that your account is linked.

Tickory never links an account by e-mail address or name on its own. Otherwise someone who can pick your e-mail address or name at the sign-in service would end up in your account. That is why you confirm the link with your own password.

Signing in

The sign-in screen has the button “Sign in with …”. Choose it, sign in at the sign-in service (if you are already signed in there, this is immediate), and you are back in Tickory. Your Tickory username and password keep working, unless the administrator has turned signing in with a password off; then the button is the only way.

In the Android app the sign-in service opens in your phone's browser (not in the app itself: that way the app never sees your password). After signing in you jump back to the app; sometimes there is a button Back to Tickory first.

Two-step verification

When you sign in through the sign-in service, Tickory does not ask for its own code again: the rules of the sign-in service apply. So turn on two-step verification at the sign-in service.

When it does not work

“No Tickory account is linked to this account at the sign-in service yet. Sign in with your password first and link it in Account, or ask the administrator.”
Your account at the sign-in service is not linked to a Tickory account yet. Sign in with your password and link it, or ask the administrator.
“Your account at the sign-in service has no access to Tickory. Ask the administrator.”
The administrator only lets certain groups of the sign-in service in, and you are not (yet) in one of them.
“This sign-in attempt has expired or was already used. Please try again.”
It took too long (more than ten minutes), or the return link was already used. Start again with the button.
“The sign-in service returned an error or an invalid answer. Please try again; if it keeps failing, ask the administrator to check the server log.”
Something went wrong between Tickory and the sign-in service. The details are only in the server log, not on your screen.

Removing the link

In Account, password and devices, choose Remove link. That is only possible if you also have a password and the server allows signing in with a password: otherwise you would lock yourself out. An administrator can also remove a link in User management (Remove SSO link).

For administrators

Tickory itself is the OIDC client: there is nothing extra to install and no traffic goes through a third party. You need a sign-in service that speaks OpenID Connect and can be reached over https.

Setting up

  1. At the sign-in service, create an application (client) for Tickory: confidential (with a client secret) or public (PKCE only), with the address of Tickory plus /api/v1/auth/oidc/callback as redirect URI, and the scopes openid profile email (and groups if you want to use groups).
  2. Put in .env:
    PUBLIC_URL=https://tasks.example.org
    OIDC_ISSUER=https://auth.example.org/application/o/tickory/
    OIDC_CLIENT_ID=tickory
    OIDC_CLIENT_SECRET=the-secret-from-the-sign-in-service
    OIDC_BUTTON_NAME=Authentik
  3. Restart the container (docker compose up -d). The log says “Inloggen via OIDC staat aan”; if the sign-in service cannot be reached or something is wrong, it says why.

The client secret can also come from a file, for example a Docker secret: OIDC_CLIENT_SECRET_FILE=/run/secrets/oidc.

Per sign-in service

Sign-in serviceSettings
AuthentikOIDC_ISSUER=https://auth.example.org/application/o/<slug>/. Provider type OAuth2/OpenID; groups come with the profile scope.
AutheliaOIDC_ISSUER=https://auth.example.org. A client with redirect_uris, scopes: [openid, profile, email, groups] and token_endpoint_auth_method: client_secret_basic. Authelia puts name and groups in userinfo; Tickory reads them there.
KeycloakOIDC_ISSUER=https://keycloak.example.org/realms/<realm>. Client authentication on. For groups, a “Group Membership” mapper with claim name groups and “Full group path” off.
Pocket IDOIDC_ISSUER=https://id.example.org. For groups, OIDC_SCOPES=openid profile email groups.
ZitadelOIDC_ISSUER=https://<instance>.zitadel.cloud. Roles are in a claim of their own: OIDC_GROUPS_CLAIM=urn:zitadel:iam:org:project:roles.
GoogleOIDC_ISSUER=https://accounts.google.com. No groups; never turn on OIDC_AUTO_CREATE here, or everyone with a Google account gets in.
MicrosoftOIDC_ISSUER=https://login.microsoftonline.com/<tenant-id>/v2.0, with your own tenant id (not common).

More settings

OIDC_AUTO_CREATE=1
Someone who signs in through the sign-in service for the first time and has no linked account yet gets a new account: the username from the sign-in service (cleaned up, with -2 added if it already exists), without a password. Off by default. An existing account with the same name is never taken over. If someone got a second account this way while they already had one, remove the link of the new account in User management and let them link their own account.
OIDC_ALLOWED_GROUPS=tickory,family
Only members of one of these groups get in through the sign-in service.
OIDC_ADMIN_GROUPS=tickory-admins
Members of one of these groups are administrators; someone who is not (or no longer) a member loses that at their next sign-in through the sign-in service. The last active administrator always stays an administrator.
OIDC_GROUPS_CLAIM, OIDC_SCOPES, OIDC_REDIRECT_URL
The claim with the groups (default groups), the scopes (default openid profile email) and the redirect URI when it is not PUBLIC_URL plus /api/v1/auth/oidc/callback.
OIDC_ONLY=1
Signing in with a password is off; the sign-in screen only shows the button. If the sign-in service is down, create a one-time sign-in link on the server (valid for fifteen minutes):
docker compose exec tickory node server/main.ts user signin-code anna
Only turn this on when everyone has linked their account, or together with OIDC_AUTO_CREATE.

Good to know