triauth for PeerTubeOIDC
Let your team sign in to your PeerTube with one approval on their own device, through the official OpenID Connect plugin.
- 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
- In PeerTube, open Administration › Plugins/Themes › Search plugins, find auth-openid-connect, and install it.
- Open oidc.triauth.org and enter your domain. Paste PeerTube's redirect address,
https://video.example.com/plugins/auth-openid-connect/router/code-cbwith your own PeerTube address in place ofvideo.example.com, and click Connect app. The bridge gives you a client ID and a client secret. - Open the plugin's settings from the list of installed plugins. Enter your domain as the auth display name,
https://oidc.triauth.org/example.comwith your domain in place ofexample.comas the discover URL, paste the client ID and the client secret, set the scope toopenid email profile groups offline_access, set the display name property toname, and tick Re-validate refresh tokens with the identity provider. Save. - 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
groupsand 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
| Setting | Value |
|---|---|
| Redirect address | https://<your-peertube>/plugins/auth-openid-connect/router/code-cb |
| Where in PeerTube | Administration › Plugins/Themes, then the settings of the installed plugin |
| Discover URL | https://oidc.triauth.org/<your domain>, from which the plugin reads the rest |
| Username | preferred_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 property | name |
| Refresh tokens | Re-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
- 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 and limit PeerTube to one of them.
- Read the OpenID Connect plugin's README for every setting it 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.