Skip to content

triauth for DocumensoOIDC

Let your team open Documenso with one approval on their own device, and no Documenso passwords.

  • Documents and e-signatures
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every self-hosted Documenso
Set up in
Environment variables

About Documenso

Documenso is a tool for sending documents out for electronic signature and signing them, an open-source alternative to DocuSign. Teams use it to get contracts, offers, and forms signed online and to see who has signed.

Connect Documenso to triauth

Documenso signs people in through the triauth OpenID Connect bridge. Once connected, Documenso's sign-in page shows a button with your domain's name. People on your team click it, type their username, and approve on their own device. Nobody keeps a Documenso password, and when someone leaves, removing their identity records at your domain ends their access to Documenso as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Documenso's redirect address, https://sign.example.com/api/auth/callback/oidc with your own Documenso address in place of sign.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to Documenso's environment, for example in its .env file, and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    ini
    NEXT_PRIVATE_OIDC_WELL_KNOWN=https://oidc.triauth.org/example.com/.well-known/openid-configuration
    NEXT_PRIVATE_OIDC_CLIENT_ID=<client ID from the bridge>
    NEXT_PRIVATE_OIDC_CLIENT_SECRET=<client secret from the bridge>
    NEXT_PRIVATE_OIDC_PROVIDER_LABEL=example.com
    NEXT_PRIVATE_OIDC_PROMPT=
  3. Open Documenso's sign-in page and click the button with your domain's name.

Checkpoint

Documenso's sign-in page shows a new button with your domain's name. 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

  • Everyone with an identity at your domain gets a Documenso account the first time they sign in, and people who already have an account under the same email address are connected to it. To let only one team in, limit the app to a group when you connect it.
  • Organization roles in Documenso are managed in Documenso.
  • This page covers the sign-in for your whole Documenso. The separate single sign-on portal per organization is part of Documenso's Enterprise edition.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-documenso>/api/auth/callback/oidc
Where in Documensothe environment, such as the .env file or the environment block of compose.yml
Discovery URLNEXT_PRIVATE_OIDC_WELL_KNOWN takes the full address, https://oidc.triauth.org/<your domain>/.well-known/openid-configuration
PromptNEXT_PRIVATE_OIDC_PROMPT left empty, so that Documenso does not ask the bridge to force a fresh login every time
New accountsNEXT_PUBLIC_DISABLE_OIDC_SIGNUP=true stops new accounts, once everyone is in

Documenso keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Documenso's environment reference lists every variable.

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.