Skip to content

triauth for RetoolOIDC

Let your staff open the internal tools built in Retool with one approval on their own device, and no Retool passwords.

  • Low-code and data
  • Cloud service
Sign-in through
OpenID Connect bridge
Available in
The plan with custom single sign-on, cloud and self-hosted
Set up in
Settings › Single Sign-On (SSO)

About Retool

Retool is a low-code platform for internal business applications. Staff put tables, forms, and charts on a canvas, connect them to databases and APIs, and publish the result to colleagues. Companies use it for admin panels, support tools, and operations dashboards.

Connect Retool to triauth

Retool signs people in through the triauth OpenID Connect bridge, as its custom single sign-on. Once connected, people on your team are sent to the bridge from Retool's login page, type their username, and approve on their own device. Nobody keeps a Retool password, and when someone leaves, removing their identity records at your domain ends their access to every tool built in Retool.

How it works

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

  2. In Retool, open Settings › Single Sign-On (SSO), choose OpenID Connect, and fill in the fields below with your domain in place of example.com. Turn on Enable JIT user provisioning, click Test Connection, and save.

    FieldValue
    Client ID and Client secretfrom the bridge
    Scopesopenid email profile groups offline_access
    Auth URLhttps://oidc.triauth.org/example.com/authorize
    Token URLhttps://oidc.triauth.org/example.com/token
    Email keyidToken.email
    Roles key and Role mappingidToken.groups, with mappings such as retool-admins@example.com -> admin
  3. Sign out and sign in again from Retool's login page.

Checkpoint

Retool's login page sends the person to a page from the bridge that asks for the username, and their authenticator asks them to approve. Retool then opens with the permission groups from the mapping.

Good to know

  • With provisioning on, everyone with an identity at your domain gets a Retool account the first time they sign in, within the seats your plan allows. To let only one team in, limit the app to a group when you connect it.
  • The role mapping turns the groups published at your domain into Retool permission groups at every sign-in, and overwrites the groups it does not mention.
  • Custom single sign-on is part of Retool's top plan, in the cloud and self-hosted.

For the person who connects the app

SettingValue
Redirect addresshttps://<your Retool domain>/oauth2sso/callback
Where in RetoolSettings › Single Sign-On (SSO) on the cloud and on self-hosted versions from 3.16, or the CUSTOM_OAUTH2_SSO_* environment variables on older ones
AddressesAuth URL and Token URL go in by hand, since Retool does not read the discovery document. Fat token URL may point at https://oidc.triauth.org/<your domain>/userinfo, though the bridge's ID token already carries the email, name, and groups
Scopeswith offline_access, as Retool's example lists. Retool needs it for its own session. Without it, Retool signs people out as soon as the first token from the bridge expires, long before its own session limit. With it, Retool renews the sign-in through the bridge, usually every two hours, and a removed identity is signed out at the next renewal
Namesleave the first and last name keys unset. End session URL stays empty

Retool keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Retool's OIDC guide explains every field, and the provisioning guide covers new accounts.

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.