Co-authored-by: risson <18313093+rissson@users.noreply.github.com> Signed-off-by: fyksen <fredrik@fyksen.me>
1.8 KiB
title |
---|
Tandoor Recipes |
Support level: Community
What is Tandoor Recipes
Tandoor Recipes is an easy-to-use, powerful self-hosted food recipe manager.
Tandoor Recipy uses Django Allauth as the authentication engine. It supports OpenID Connect.
Preparation
The following placeholders will be used:
tandoor.company
is the FQDN of the Tandoor Recipes install.authentik.company
is the FQDN of the authentik install.
Provider
Create an Provider in authentik with the following parameters:
-
Client type
Confidential
-
Client ID
Take note off Client ID.
-
Client Secret
Take note off Client Secret.
-
Redirect URIs/Origins (RegEx)
-
Signing Key
authentik Self-signed Certificate
-
Leave the rest on default
Application
Create a Application with the following parameters:
-
Name: tandoor
-
Provider: tandoor
-
Leave rest on default
Tandoor Recipy
- Add this to your
.env
file (please make sure to insert yourserver_url
,client_id
andsecret
):
SOCIALACCOUNT_PROVIDERS={ "openid_connect": { "SERVERS": [{ "id": "authentik", "name": "Authentik", "server_url": "https://authentik.company/application/o/tandoor/.well-known/openid-configuration", "token_auth_method": "client_secret_basic", "APP": { "client_id": "ClientIdFromProvider", "secret": "SecretFromProvider" } } ] } }
-
Restart Tandoor, you should now see
Sign In Via Authentik
button. -
If you want to set your authentik user as administrator, log in as an administrator, then you can do so in the https://tandoor.company/admin/auth/user/ click the user you want to make admin, and mark the
Superuser status
andStaff status
.