website/integrations/documentation/mealie/index.md
Mealie is a self hosted recipe manager and meal planner. Easily add recipes by providing the url and Mealie will automatically import the relevant data or add a family recipe with the UI editor.
The following placeholders are used in this guide:
mealie.company is the FQDN of the Mealie installation.authentik.company is the FQDN of the authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of Mealie with authentik, you need to create an application/provider pair in authentik.
Strict redirect URIs and set to https://mealie.company/login and https://mealie.company/login?direct=1.Using the authentik Admin interface, navigate to Directory > Groups and click Create to create two groups, with names of your choosing, one for Users (ex: mealie-users) and one for Admins (ex: mealie-admins).
After creating the groups, select a group, navigate to Directory > Users, and manage its members by using the Add existing user and Create user buttons as needed. An admin will need to be added as a member to both groups to function properly.
To enable OIDC login with Mealie, update your environment variables to include the following:
OIDC_AUTH_ENABLED=true
OIDC_PROVIDER_NAME=authentik
OIDC_CONFIGURATION_URL=https://authentik.company/application/o/<application_slug>/.well-known/openid-configuration
OIDC_CLIENT_ID=<Client ID from authentik>
OIDC_CLIENT_SECRET=<Client secret from authentik>
OIDC_SIGNUP_ENABLED=true
OIDC_USER_GROUP=<Your users group created in authentik>
OIDC_ADMIN_GROUP=<Your admins group created in authentik>
OIDC_AUTO_REDIRECT=true # Optional: The login page will be bypassed and you will be sent directly to your Identity Provider.
OIDC_REMEMBER_ME=true # Optional: By setting this value to true, a session will be extended as if "Remember Me" was checked.
Restart the Mealie service for the changes to take effect.