triauth for linkdingOIDC
Let your household or team open linkding with one approval on their own device, and no linkding passwords.
- 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
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 oflinks.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to linkding's environment and restart it. Replace
example.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.iniLD_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>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
| Setting | Value |
|---|---|
| Redirect address | https://<your-linkding>/oidc/callback/, with the trailing slash, under LD_CONTEXT_PATH if you set one |
| Where in linkding | environment variables of the container or the .env file |
| Addresses | the four addresses go in one by one, as above, since linkding does not read the discovery document |
| Scopes | openid email profile, the default |
| Password sign-in | LD_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
- 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 household or organization an identifier at your domain.
- Read Groups to limit linkding to one group when you connect it.
- Read linkding's options reference for every setting linkding 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.