triauth for GristOIDC
Let your team open Grist with one approval on their own device, and no Grist passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Self-hosted Grist, with an activation key
- Set up in
- Environment variables
About Grist
Grist is a spreadsheet that behaves like a database: tables with typed columns, relations between them, formulas in Python, and custom views, all shared with a team. It runs as a hosted service or on a company's own server from the open-source image.
Connect Grist to triauth
Grist signs people in through the triauth OpenID Connect bridge. Once connected, Grist's Sign in link goes straight to the bridge. People on your team type their username and approve on their own device. Nobody keeps a Grist password, and when someone leaves, removing their identity records at your domain ends their access to Grist as well.
This page is about a Grist that you run yourself.
How it works
Open oidc.triauth.org and enter your domain. Paste Grist's redirect address,
https://grist.example.com/oauth2/callbackwith your own Grist address in place ofgrist.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to Grist's environment and restart it. Replace
example.comwith your domain,grist.example.comwith your Grist address, and the two placeholders with the client ID and the client secret from the bridge.iniGRIST_OIDC_IDP_ISSUER=https://oidc.triauth.org/example.com GRIST_OIDC_IDP_CLIENT_ID=<client ID from the bridge> GRIST_OIDC_IDP_CLIENT_SECRET=<client secret from the bridge> GRIST_OIDC_SP_HOST=https://grist.example.com GRIST_OIDC_IDP_SKIP_END_SESSION_ENDPOINT=trueOpen Grist and click Sign in.
Checkpoint
Grist's Sign in link opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- Everyone with an identity at your domain gets a Grist profile the first time they sign in. What they can open is decided by Grist's own sharing of workspaces and documents. To let only one team in, limit the app to a group when you connect it.
- Grist has no role mapping, so the groups published at your domain are not used.
- Grist lists sign-in through your own identity provider among the features of its full edition, which runs with an activation key. The hosted service offers it on its top plan.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-grist>/oauth2/callback, built from GRIST_OIDC_SP_HOST |
| Where in Grist | environment variables of the server |
| Issuer | GRIST_OIDC_IDP_ISSUER takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document |
| Sign-out | GRIST_OIDC_IDP_SKIP_END_SESSION_ENDPOINT=true is required. Without it Grist refuses to start, because the bridge has no sign-out endpoint |
| Scopes and claims | openid email profile, the default. Grist uses name when there are no separate first and last names, and requires email_verified, which the bridge sends |
Grist keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Grist's OpenID Connect guide explains every variable, with examples for other providers.
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 Grist to one team when you connect it.
- Read Grist's OpenID Connect guide for every setting Grist 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.