Skip to content

triauth for PortainerOIDC

Give your IT team one approval on their own device to open Portainer, and retire the Portainer passwords.

  • IT and infrastructure
  • Open source
Sign-in through
OpenID Connect bridge
Available in
All editions, with team mapping in the Business Edition
Set up in
Settings › Authentication › OAuth

About Portainer

Portainer is a web console for the containers that run your applications. Your IT team deploys, watches, and fixes them from one screen, on Docker, Kubernetes, and Podman, without typing commands. It comes as a Community Edition and a Business Edition.

Connect Portainer to triauth

Portainer signs people in through the triauth OpenID Connect bridge, set up as its Custom OAuth provider. Once connected, its sign-in page offers a Login with OAuth button. People on your team click it, type their username, and approve on their own device. Nobody keeps a Portainer password, and when someone leaves, removing their identity records at your domain ends their access to Portainer as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste the address of your Portainer, such as https://portainer.example.com:9443/, as the redirect address, and click Connect app.

  2. In Portainer, open Settings › Authentication, choose OAuth, and then the Custom provider.

  3. Paste the client ID and the client secret, and enter the three addresses below with your domain in place of example.com. Set User identifier to email and Scopes to openid profile email. Turn on Automatic user provisioning if new people should get an account at their first sign-in, and save.

    FieldValue
    Authorization URLhttps://oidc.triauth.org/example.com/authorize
    Access token URLhttps://oidc.triauth.org/example.com/token
    Resource URLhttps://oidc.triauth.org/example.com/userinfo
  4. Sign out and click Login with OAuth.

Checkpoint

Portainer's sign-in page shows a Login with OAuth 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

  • With automatic user provisioning on, everyone with an identity at your domain gets a Portainer account at their first sign-in, in the default team you choose. With it off, an administrator creates each account first, with the person's identifier as the username.
  • Portainer knows people by username, so the names in its user list look like email addresses.
  • Putting people into Portainer teams by the groups published at your domain is part of the Business Edition.
  • Keep the first administrator account that Portainer created. It still signs in with its password when the bridge is unreachable.

For the person who connects the app

SettingValue
Redirect addressthe address of your Portainer, such as https://<your-portainer>:9443/, with no path
Where in PortainerSettings › Authentication › OAuth › Custom
Addressesthe authorization, token, and userinfo addresses go in one by one, as in the table above, since Portainer does not read the discovery document
User identifieremail
Scopesopenid profile email, plus groups in the Business Edition for team membership
Auth styleAuto Detect works, as do In Params and In Header
Logout URLleave empty

Portainer keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Portainer's OAuth guide explains every field.

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.