Skip to content

triauth for PeerTubeOIDC

Let your team sign in to your PeerTube with one approval on their own device, through the official OpenID Connect plugin.

  • Video and media
  • Open source
Sign-in through
OpenID Connect bridge
Available in
PeerTube 8.3 and newer, with the official OpenID Connect plugin
Set up in
Administration › Plugins/Themes

About PeerTube

PeerTube is video hosting software that you run on your own server, an alternative to YouTube or Vimeo. Organizations use it to publish courses, talks, and announcements, and viewers can follow channels on other PeerTube servers too.

Connect PeerTube to triauth

PeerTube signs people in through the triauth OpenID Connect bridge, with the official OpenID Connect plugin by Framasoft. Once connected, the login form shows a button with the name you choose. People on your team click it, type their username, and approve on their own device. Nobody keeps a PeerTube password, and when someone leaves, removing their identity records at your domain ends their access to PeerTube as well.

How it works

  1. In PeerTube, open Administration › Plugins/Themes › Search plugins, find auth-openid-connect, and install it.
  2. Open oidc.triauth.org and enter your domain. Paste PeerTube's redirect address, https://video.example.com/plugins/auth-openid-connect/router/code-cb with your own PeerTube address in place of video.example.com, and click Connect app. The bridge gives you a client ID and a client secret.
  3. Open the plugin's settings from the list of installed plugins. Enter your domain as the auth display name, https://oidc.triauth.org/example.com with your domain in place of example.com as the discover URL, paste the client ID and the client secret, set the scope to openid email profile groups offline_access, set the display name property to name, and tick Re-validate refresh tokens with the identity provider. Save.
  4. Open PeerTube's login form and click the button with your domain's name.

Checkpoint

PeerTube's login form shows a new button with your domain's name. 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 PeerTube account the first time they sign in, as a regular user. To let only one team in, limit the app to a group when you connect it, or set the plugin's Group property to groups and name the one group allowed in.
  • Moderator and administrator roles are set in PeerTube.
  • PeerTube's own apps for phones and TVs sign in through the same connection.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-peertube>/plugins/auth-openid-connect/router/code-cb
Where in PeerTubeAdministration › Plugins/Themes, then the settings of the installed plugin
Discover URLhttps://oidc.triauth.org/<your domain>, from which the plugin reads the rest
Usernamepreferred_username, the default, is the person's username, which fits PeerTube's rules for user names up to 50 characters, so Sanitize username can stay off
Display name propertyname
Refresh tokensRe-validate refresh tokens with the identity provider on, with offline_access in the scope and a client secret set. PeerTube then checks with the bridge whenever it renews its own session, usually once a day, so a removed identity is out at the next renewal. A bridge outage at that moment does not sign anyone out

The plugin keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. The plugin's README explains every setting.

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.