Skip to content

triauth for La Suite DocsOIDC

Let your team write in Docs with one approval on their own device, and no Docs passwords.

  • Documents and collaboration
  • Open source
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

  1. 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 of docs.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to the backend's environment, the env.d/backend file in the Docker Compose setup, and restart Docs. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    ini
    OIDC_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=true
  3. Open 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

SettingValue
Redirect addresshttps://<your-docs>/api/v1.0/callback/, with the trailing slash
Where in Docsthe backend's environment, env.d/backend in the Compose setup
Addressesthe four addresses go in one by one, as above, since Docs does not read the discovery document
NamesOIDC_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
PKCEoptional, 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

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.