Skip to content

triauth for PenpotOIDC

Let your designers and developers open Penpot with one approval on their own device, and no Penpot passwords.

  • Design
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every self-hosted Penpot
Set up in
The backend's environment variables

About Penpot

Penpot is a design tool for apps and websites that a company runs on its own server. Designers draw layouts, build prototypes, and keep a shared design system, and developers open the same files to read measurements and code.

Connect Penpot to triauth

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

How it works

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

  2. Add the settings below to the environment of Penpot's backend, for example in its docker-compose.yaml, and restart Penpot. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge. The address on the fourth line ends with a slash.

    yaml
    PENPOT_FLAGS: "enable-login-with-oidc enable-oidc-registration"
    PENPOT_OIDC_CLIENT_ID: <client ID from the bridge>
    PENPOT_OIDC_CLIENT_SECRET: <client secret from the bridge>
    PENPOT_OIDC_BASE_URI: https://oidc.triauth.org/example.com/
    PENPOT_OIDC_SCOPES: "openid profile email"
  3. Open Penpot's sign-in page and click the OpenID button.

Checkpoint

Penpot's sign-in page shows a new OpenID button. 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 Penpot account the first time they sign in. People who already have an account with the same email address are connected to it.
  • To let only one team in, limit the app to a group when you connect it.
  • Penpot's teams are managed in Penpot. The groups published at your domain do not fill them.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-penpot>/api/auth/oidc/callback
Where in Penpotthe backend's environment variables, next to the existing PENPOT_FLAGS line, which keeps its other flags
Base URIhttps://oidc.triauth.org/<your domain>/ with the trailing slash, since Penpot appends the discovery path to it
Button labelPENPOT_OIDC_NAME on the frontend names the button, in Penpot 2.16 and newer
GroupsPENPOT_OIDC_ROLES_ATTR: groups with PENPOT_OIDC_ROLES lists the groups that may sign in

Penpot keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. The OpenID Connect section of Penpot's configuration guide explains 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.