Skip to content

triauth for PostizOIDC

Let your marketing team open Postiz with one approval on their own device, and no Postiz passwords.

  • Marketing and social media
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every self-hosted Postiz
Set up in
Environment variables

About Postiz

Postiz is a tool for planning and publishing posts to social networks such as LinkedIn, X, Instagram, and YouTube from one place. Marketing teams use it to schedule content, work on drafts together, and see how posts perform. It runs as a hosted service or on your own server.

Connect Postiz to triauth

Postiz signs people in through the triauth OpenID Connect bridge. Once connected, its sign-in page shows a Sign in with button carrying your domain's name. People on your team click it, type their username, and approve on their own device. Nobody keeps a Postiz password, and when someone leaves, removing their identity records at your domain ends their access to Postiz as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Postiz's redirect address, https://postiz.example.com/settings with your own Postiz address in place of postiz.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to Postiz's environment and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    ini
    POSTIZ_GENERIC_OAUTH=true
    NEXT_PUBLIC_POSTIZ_OAUTH_DISPLAY_NAME=example.com
    POSTIZ_OAUTH_URL=https://oidc.triauth.org/example.com
    POSTIZ_OAUTH_AUTH_URL=https://oidc.triauth.org/example.com/authorize
    POSTIZ_OAUTH_TOKEN_URL=https://oidc.triauth.org/example.com/token
    POSTIZ_OAUTH_USERINFO_URL=https://oidc.triauth.org/example.com/userinfo
    POSTIZ_OAUTH_CLIENT_ID=<client ID from the bridge>
    POSTIZ_OAUTH_CLIENT_SECRET=<client secret from the bridge>
  3. Open Postiz's sign-in page and click Sign in with example.com.

Checkpoint

Postiz's sign-in page shows a Sign in with 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 Postiz account, and a workspace of their own, the first time they sign in. Accounts that were created with a password before are not matched, so start with this sign-in on a fresh Postiz, or invite people into the existing workspace afterwards. To let only one team in, limit the app to a group when you connect it.
  • Turning this sign-in on replaces the GitHub and Google sign-in buttons.
  • Roles inside a workspace are managed in Postiz.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-postiz>/settings, the settings page of the Postiz front end
Where in Postizthe environment of the Postiz containers
Addressesthe authorization, token, and userinfo addresses go in one by one, as above, since Postiz does not read the discovery document
ButtonNEXT_PUBLIC_POSTIZ_OAUTH_DISPLAY_NAME names it, and NEXT_PUBLIC_POSTIZ_OAUTH_LOGO_URL can give it an icon
ClaimsPostiz reads email and sub from the userinfo response, with the scopes openid profile email built in

Postiz keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Postiz's OIDC configuration guide lists every variable.

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.