triauth for La Suite DocsOIDC
Let your team write in Docs with one approval on their own device, and no Docs passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every Docs installation
- Set up in
- Environment variables
About La Suite Docs
Docs is a collaborative text editor that runs in the browser, in the spirit of Google Docs. A team writes documents together in real time and organizes them with sub-documents. It is built by the French and German public administrations, and public bodies and companies install it on their own servers.
Connect La Suite Docs to triauth
Docs has no passwords of its own. It always signs people in through an outside provider, and the triauth OpenID Connect bridge can be that provider. Once connected, clicking Sign in on Docs opens a page that asks for the person's username, and their own device asks them to approve. When someone leaves, removing their identity records at your domain ends their access to Docs as well.
How it works
Open oidc.triauth.org and enter your domain. Paste Docs' redirect address,
https://docs.example.com/api/v1.0/callback/with your own Docs address in place ofdocs.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the backend's environment, the
env.d/backendfile in the Docker Compose setup, and restart Docs. Replaceexample.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.iniOIDC_OP_AUTHORIZATION_ENDPOINT=https://oidc.triauth.org/example.com/authorize OIDC_OP_TOKEN_ENDPOINT=https://oidc.triauth.org/example.com/token OIDC_OP_USER_ENDPOINT=https://oidc.triauth.org/example.com/userinfo OIDC_OP_JWKS_ENDPOINT=https://oidc.triauth.org/example.com/jwks OIDC_RP_CLIENT_ID=<client ID from the bridge> OIDC_RP_CLIENT_SECRET=<client secret from the bridge> OIDC_RP_SCOPES=openid email profile OIDC_USERINFO_FULLNAME_FIELDS=["name"] OIDC_USERINFO_SHORTNAME_FIELD=name OIDC_CREATE_USER=trueOpen Docs and click Sign in.
Checkpoint
Clicking Sign in on Docs opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. Back in Docs, the person sees their documents.
Good to know
- Everyone with an identity at your domain gets a Docs account the first time they sign in. To let only one team in, limit the app to a group when you connect it.
- Docs recognizes people by their identity first and by their email address second, so an account that already exists under the same email address is picked up.
- Document sharing and access are managed in Docs. The groups published at your domain are not used.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-docs>/api/v1.0/callback/, with the trailing slash |
| Where in Docs | the backend's environment, env.d/backend in the Compose setup |
| Addresses | the four addresses go in one by one, as above, since Docs does not read the discovery document |
| Names | OIDC_USERINFO_FULLNAME_FIELDS and OIDC_USERINFO_SHORTNAME_FIELD point at name, since the defaults expect separate first and last names, which the bridge does not send |
| PKCE | optional, OIDC_USE_PKCE=true |
Docs keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Docs' environment reference lists every variable, and the installation guide shows where they go.
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 Docs to one team when you connect it.
- Read Docs' environment reference for every setting Docs 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.