From 95b028d083eb39371ed83a64d8dd9a0448648d5b Mon Sep 17 00:00:00 2001 From: many Date: Wed, 18 Jun 2025 16:55:44 -0400 Subject: [PATCH] configure openid connect plugin to link existing users by default --- README.md | 3 --- entrypoint.sh | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 132183f..d06fb42 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,6 @@ * `abra app new civicrm-wordpress` * `abra app config ` -SMTP: -* Make sure to configure Traefik to support SMTP - Authentik integration: * When configuring, uncomment `COMPOSE_FILE`, `OPEN_ID_CLIENT_ID`, `SECRET_OPEN_ID_CLIENT_SECRET_VERSION`, and `AUTHENTIK_DOMAIN` * To configure your Authentik deployment, follow the guide at [`docs.goauthentik.io/integrations/services/wordpress`](https://docs.goauthentik.io/integrations/services/wordpress/). diff --git a/entrypoint.sh b/entrypoint.sh index 43631ad..0fdf5fd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -110,6 +110,7 @@ if [ "$OPEN_ID_CLIENT_ID" != "unused" ]; then echo "============ Configuring OpenId Connect ============" su civicrm -c "wp option patch update openid_connect_generic_settings client_id $OPEN_ID_CLIENT_ID" su civicrm -c "wp option patch update openid_connect_generic_settings client_secret $OPEN_ID_CLIENT_SECRET" + su civicrm -c "wp option patch update openid_connect_generic_settings link_existing_users 1" AUTHENTIK_DOMAIN="${AUTHENTIK_DOMAIN:-unused}" if [ "$AUTHENTIK_DOMAIN" != "unused" ]; then