triauth for PenpotOIDC
Let your designers and developers open Penpot with one approval on their own device, and no Penpot passwords.
- 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
Open oidc.triauth.org and enter your domain. Paste Penpot's redirect address,
https://penpot.example.com/api/auth/oidc/callbackwith your own Penpot address in place ofpenpot.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the environment of Penpot's backend, for example in its
docker-compose.yaml, and restart Penpot. Replaceexample.comwith 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.yamlPENPOT_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"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
| Setting | Value |
|---|---|
| Redirect address | https://<your-penpot>/api/auth/oidc/callback |
| Where in Penpot | the backend's environment variables, next to the existing PENPOT_FLAGS line, which keeps its other flags |
| Base URI | https://oidc.triauth.org/<your domain>/ with the trailing slash, since Penpot appends the discovery path to it |
| Button label | PENPOT_OIDC_NAME on the frontend names the button, in Penpot 2.16 and newer |
| Groups | PENPOT_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
- 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 Penpot to one team when you connect it.
- Read Penpot's configuration guide for every setting Penpot 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.