Skip to content

triauth for linkdingOIDC

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

  • Bookmarks
  • Open source
Sign-in through
OpenID Connect bridge
Available in
linkding 1.25 and newer
Set up in
Environment variables

About linkding

linkding is a bookmark manager you run on your own server. People save links with tags and notes, keep an archived copy of each page, and find them again from a browser extension or a bookmarklet. It is small, fast, and made for one person or a household.

Connect linkding to triauth

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

How it works

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

  2. Add the settings below to linkding'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
    LD_ENABLE_OIDC=True
    OIDC_OP_AUTHORIZATION_ENDPOINT=https://oidc.triauth.org/example.com/authorize
    OIDC_OP_TOKEN_ENDPOINT=https://oidc.triauth.org/example.com/token
    OIDC_OP_USER_ENDPOINT=https://oidc.triauth.org/example.com/userinfo
    OIDC_OP_JWKS_ENDPOINT=https://oidc.triauth.org/example.com/jwks
    OIDC_RP_CLIENT_ID=<client ID from the bridge>
    OIDC_RP_CLIENT_SECRET=<client secret from the bridge>
  3. Open linkding's login page and click Login with OIDC.

Checkpoint

linkding's login page shows Login with OIDC 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 linkding account the first time they sign in, with their identifier as user name. To let only one group in, limit the app to a group when you connect it.
  • Give your administrator account an email address before the first sign-in through the bridge, so that it is matched instead of duplicated. linkding matches people by email address.
  • linkding has no groups or roles, so the groups published at your domain are not used. The browser extension keeps using the browser's session or an API token.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-linkding>/oidc/callback/, with the trailing slash, under LD_CONTEXT_PATH if you set one
Where in linkdingenvironment variables of the container or the .env file
Addressesthe four addresses go in one by one, as above, since linkding does not read the discovery document
Scopesopenid email profile, the default
Password sign-inLD_DISABLE_LOGIN_FORM=True leaves only the Login with OIDC button

linkding keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. linkding's options reference 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.