triauth for LeantimeOIDC
Let your team open Leantime with one approval on their own device, and no Leantime passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every self-hosted Leantime
- Set up in
- The .env file
About Leantime
Leantime is a project management system made for people who are not trained project managers. It brings goals, planning, and the day's tasks together in one place, and is built with ADHD, dyslexia, and autism in mind.
Connect Leantime to triauth
Leantime signs people in through the triauth OpenID Connect bridge. Once connected, Leantime's sign-in page shows an OIDC Login button under the password form. People on your team click it, type their username, and approve on their own device. Nobody keeps a Leantime password, and when someone leaves, removing their identity records at your domain ends their access to Leantime as well.
How it works
Open oidc.triauth.org and enter your domain. Paste Leantime's redirect address,
https://leantime.example.com/oidc/callbackwith your own Leantime address in place ofleantime.example.com, and click Connect app. The bridge gives you a client ID and a client secret.On your server, add the settings below to Leantime's
.envfile. Replaceexample.comwith your domain and the two placeholders with the client ID and the client secret from the bridge. The address on the second line ends with a slash.iniLEAN_OIDC_ENABLE=true LEAN_OIDC_PROVIDER_URL=https://oidc.triauth.org/example.com/ LEAN_OIDC_CLIENT_ID=<client ID from the bridge> LEAN_OIDC_CLIENT_SECRET=<client secret from the bridge> LEAN_OIDC_CREATE_USER=true LEAN_OIDC_FIELD_FIRSTNAME=nameOpen Leantime's sign-in page and click OIDC Login.
Checkpoint
Leantime's sign-in page shows an OIDC Login button below the password form. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- With
LEAN_OIDC_CREATE_USERon, everyone with an identity at your domain gets a Leantime account the first time they sign in, with the editor role. People who already have an account under the same email address sign in to it. To let only one team in, limit the app to a group when you connect it. - Roles in Leantime are managed in Leantime. The groups published at your domain are not used.
- Leantime's own site lists single sign-on among its enterprise offerings, while the open-source code carries these settings. Check the edition you run.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-leantime>/oidc/callback |
| Where in Leantime | the .env file, or the same names as environment variables |
| Provider URL | https://oidc.triauth.org/<your domain>/, from which Leantime reads the rest. Leantime also checks that the tokens name this issuer |
| Names | Leantime reads given_name and family_name by default, which the bridge does not send. LEAN_OIDC_FIELD_FIRSTNAME=name puts the person's full name into the first-name field |
| Roles | LEAN_OIDC_DEFAULT_ROLE sets the role of new accounts. Turning sign-in on after setup can reset existing roles, so check the owner account afterwards |
Leantime keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Leantime's authentication guide explains every variable.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit Leantime to one team when you connect it.
- Read Leantime's authentication guide for every setting Leantime offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.