Skip to content

triauth for Tandoor RecipesOIDC

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

  • Recipes and meal planning
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Tandoor 1.5.14 and newer
Set up in
The .env file

About Tandoor Recipes

Tandoor Recipes is a self-hosted recipe manager. People import recipes from websites, organize them with tags and cookbooks, plan the week's meals, and turn the plan into a shopping list. A household or a group of friends shares one installation, with a space per group.

Connect Tandoor Recipes to triauth

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

How it works

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

  2. Add the settings below to Tandoor's .env file and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge. The second line is one long line.

    ini
    SOCIAL_PROVIDERS=allauth.socialaccount.providers.openid_connect
    SOCIALACCOUNT_PROVIDERS="{'openid_connect': {'OAUTH_PKCE_ENABLED': True, 'APPS': [{'provider_id': 'triauth', 'name': 'example.com', 'client_id': '<client ID from the bridge>', 'secret': '<client secret from the bridge>', 'settings': {'server_url': 'https://oidc.triauth.org/example.com'}}]}}"
    ENABLE_SIGNUP=1
    SOCIAL_DEFAULT_ACCESS=1
    SOCIAL_DEFAULT_GROUP=user
  3. Open Tandoor's login page and click the button with your domain's name.

Checkpoint

Tandoor's login page shows a button with your domain's name 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

  • With sign-up on, everyone with an identity at your domain gets a Tandoor account the first time they sign in and joins your space as a user. To let only one group in, limit the app to a group when you connect it. Or leave sign-up off and send invite links instead.
  • Roles in the space stay in Tandoor. The groups published at your domain are not used.
  • Apps that connect to Tandoor from a phone keep signing in with a Tandoor username and password.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-tandoor>/accounts/oidc/<provider_id>/login/callback/, with the trailing slash. Tandoor 1.5.12 and 1.5.13 used /accounts/<provider_id>/login/callback/
Where in Tandoorthe .env file, or SOCIALACCOUNT_PROVIDERS_FILE naming a secret file with the same value
Issuerserver_url takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document
Existing accountsSOCIALACCOUNT_EMAIL_AUTHENTICATION=1 signs people with a matching email address into their existing account, which is safe because the bridge confirms the address
Password sign-inSOCIALACCOUNT_ONLY=1 hides the password form, and /accounts/login/?form=1 keeps it reachable for emergencies

Tandoor keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Tandoor's authentication guide explains every setting and the invite-link setup.

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.