triauth for PortainerOIDC
Give your IT team one approval on their own device to open Portainer, and retire the Portainer passwords.
- 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
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.In Portainer, open Settings › Authentication, choose OAuth, and then the Custom provider.
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 toemailand Scopes toopenid profile email. Turn on Automatic user provisioning if new people should get an account at their first sign-in, and save.Field Value Authorization URL https://oidc.triauth.org/example.com/authorizeAccess token URL https://oidc.triauth.org/example.com/tokenResource URL https://oidc.triauth.org/example.com/userinfoSign 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
| Setting | Value |
|---|---|
| Redirect address | the address of your Portainer, such as https://<your-portainer>:9443/, with no path |
| Where in Portainer | Settings › Authentication › OAuth › Custom |
| Addresses | the authorization, token, and userinfo addresses go in one by one, as in the table above, since Portainer does not read the discovery document |
| User identifier | email |
| Scopes | openid profile email, plus groups in the Business Edition for team membership |
| Auth style | Auto Detect works, as do In Params and In Header |
| Logout URL | leave 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
- 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 publish teams at your domain.
- Read Portainer's OAuth guide for every setting Portainer 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.
