Skip to content

triauth for HomarrOIDC

Let your household or team open Homarr with one approval on their own device, and no Homarr passwords.

  • Start pages and dashboards
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every Homarr installation
Set up in
Environment variables

About Homarr

Homarr is a self-hosted start page for the services a household or small team runs: tiles that open each app, and widgets that show live data from them, such as downloads, media servers, containers, and calendars. Boards can be shared or kept private, and people are organized in groups with permissions.

Connect Homarr to triauth

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

How it works

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

  2. Add the settings below to Homarr'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
    AUTH_PROVIDERS=credentials,oidc
    AUTH_OIDC_ISSUER=https://oidc.triauth.org/example.com
    AUTH_OIDC_CLIENT_ID=<client ID from the bridge>
    AUTH_OIDC_CLIENT_SECRET=<client secret from the bridge>
    AUTH_OIDC_CLIENT_NAME=example.com
  3. Open Homarr's login page and click Login with example.com.

Checkpoint

Homarr's login page shows Login with example.com under the password form. 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 Homarr account the first time they sign in. To let only one group in, limit the app to a group when you connect it.
  • Create a Homarr group named exactly like one of the groups published at your domain, domain included, such as admins@example.com, give it permissions, and its members get them at every sign-in. Groups that do not exist in Homarr are ignored.
  • AUTH_OIDC_AUTO_LOGIN=true skips the login page altogether once everyone is over.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-homarr>/api/auth/callback/oidc. Homarr builds it from the x-forwarded-proto and x-forwarded-host headers, so the reverse proxy must send them
Where in Homarrenvironment variables of the container
IssuerAUTH_OIDC_ISSUER takes https://oidc.triauth.org/<your domain> without a trailing slash. It must equal the issuer in the discovery document exactly, and the rest comes from there
Scopes and groupsthe defaults, openid email profile groups and the claim groups, are what the bridge sends
Existing accountsAUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING=true joins a sign-in to the local account with the same confirmed email address

Homarr keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Homarr's single sign-on guide explains 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.