From 0cb3e9d57781e01d3ba8993ea4f3e645d5be3925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Tue, 5 Nov 2019 11:24:26 +0100 Subject: [PATCH 01/15] add gheb\docusign-bundle --- gheb/docusign-bundle/4.5/config/packages/docusign.yaml | 5 +++++ gheb/docusign-bundle/4.5/config/routes/docusign.yaml | 2 ++ gheb/docusign-bundle/4.5/manifest.json | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 gheb/docusign-bundle/4.5/config/packages/docusign.yaml create mode 100644 gheb/docusign-bundle/4.5/config/routes/docusign.yaml create mode 100644 gheb/docusign-bundle/4.5/manifest.json diff --git a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml new file mode 100644 index 00000000..6050ca85 --- /dev/null +++ b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml @@ -0,0 +1,5 @@ +docusign: + access_token: "YourAccessToken" + account_id: "yourAccountId" + default_signer_name: "Your Signer Name" + default_signer_email: "you@email.tld" diff --git a/gheb/docusign-bundle/4.5/config/routes/docusign.yaml b/gheb/docusign-bundle/4.5/config/routes/docusign.yaml new file mode 100644 index 00000000..2db355e1 --- /dev/null +++ b/gheb/docusign-bundle/4.5/config/routes/docusign.yaml @@ -0,0 +1,2 @@ +docusign: + resource: '@DocusignBundle/Resources/config/routing.xml' diff --git a/gheb/docusign-bundle/4.5/manifest.json b/gheb/docusign-bundle/4.5/manifest.json new file mode 100644 index 00000000..bdd9924e --- /dev/null +++ b/gheb/docusign-bundle/4.5/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "\\DocusignBundle\\DocusignBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From dc3147b6ea0552237efd067d8dec39cd3299ee3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Tue, 5 Nov 2019 11:27:23 +0100 Subject: [PATCH 02/15] fix indent --- gheb/docusign-bundle/4.5/config/routes/docusign.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/4.5/config/routes/docusign.yaml b/gheb/docusign-bundle/4.5/config/routes/docusign.yaml index 2db355e1..8de7cec6 100644 --- a/gheb/docusign-bundle/4.5/config/routes/docusign.yaml +++ b/gheb/docusign-bundle/4.5/config/routes/docusign.yaml @@ -1,2 +1,2 @@ docusign: - resource: '@DocusignBundle/Resources/config/routing.xml' + resource: '@DocusignBundle/Resources/config/routing.xml' From 34fb6da6b9ba45138ad919b92881146e10e11f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Tue, 5 Nov 2019 11:30:48 +0100 Subject: [PATCH 03/15] update default configuration --- .../docusign-bundle/4.5/config/packages/docusign.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml index 6050ca85..f8144fce 100644 --- a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml @@ -3,3 +3,14 @@ docusign: account_id: "yourAccountId" default_signer_name: "Your Signer Name" default_signer_email: "you@email.tld" + signatures: + default_document_type: + signatures: + - page: 1 # default + x_position: 200 # top left corner in pixels + y_position: 400 # top left corner in pixels + storages: + docusign.storage: + adapter: 'local' + options: + directory: '%kernel.project_dir%/var/storage/default' From bb27de45e230a6be9772af5e29b745da783b1c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Tue, 5 Nov 2019 13:33:13 +0100 Subject: [PATCH 04/15] fix indent --- gheb/docusign-bundle/4.5/config/packages/docusign.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml index f8144fce..6ac6005d 100644 --- a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml @@ -7,8 +7,8 @@ docusign: default_document_type: signatures: - page: 1 # default - x_position: 200 # top left corner in pixels - y_position: 400 # top left corner in pixels + x_position: 200 # top left corner in pixels + y_position: 400 # top left corner in pixels storages: docusign.storage: adapter: 'local' From 6f3e537496beb1020a2f49445ee77cde701dc479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Tue, 5 Nov 2019 13:36:26 +0100 Subject: [PATCH 05/15] fix indent --- gheb/docusign-bundle/4.5/config/packages/docusign.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml index 6ac6005d..df6eb0cd 100644 --- a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml @@ -6,7 +6,8 @@ docusign: signatures: default_document_type: signatures: - - page: 1 # default + - + page: 1 # default x_position: 200 # top left corner in pixels y_position: 400 # top left corner in pixels storages: From 5f2847f335f2c232af982d91fe96ba731c80079d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 15:38:32 +0100 Subject: [PATCH 06/15] add gheb/docusign-bundle v5.0 --- .../4.5/config/packages/docusign.yaml | 17 --------- .../4.5/config/routes/docusign.yaml | 2 - gheb/docusign-bundle/4.5/manifest.json | 8 ---- .../5.0/config/packages/docusign.yaml | 38 +++++++++++++++++++ gheb/docusign-bundle/5.0/manifest.json | 17 +++++++++ gheb/docusign-bundle/5.0/post-install.txt | 9 +++++ 6 files changed, 64 insertions(+), 27 deletions(-) delete mode 100644 gheb/docusign-bundle/4.5/config/packages/docusign.yaml delete mode 100644 gheb/docusign-bundle/4.5/config/routes/docusign.yaml delete mode 100644 gheb/docusign-bundle/4.5/manifest.json create mode 100644 gheb/docusign-bundle/5.0/config/packages/docusign.yaml create mode 100644 gheb/docusign-bundle/5.0/manifest.json create mode 100644 gheb/docusign-bundle/5.0/post-install.txt diff --git a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml b/gheb/docusign-bundle/4.5/config/packages/docusign.yaml deleted file mode 100644 index df6eb0cd..00000000 --- a/gheb/docusign-bundle/4.5/config/packages/docusign.yaml +++ /dev/null @@ -1,17 +0,0 @@ -docusign: - access_token: "YourAccessToken" - account_id: "yourAccountId" - default_signer_name: "Your Signer Name" - default_signer_email: "you@email.tld" - signatures: - default_document_type: - signatures: - - - page: 1 # default - x_position: 200 # top left corner in pixels - y_position: 400 # top left corner in pixels - storages: - docusign.storage: - adapter: 'local' - options: - directory: '%kernel.project_dir%/var/storage/default' diff --git a/gheb/docusign-bundle/4.5/config/routes/docusign.yaml b/gheb/docusign-bundle/4.5/config/routes/docusign.yaml deleted file mode 100644 index 8de7cec6..00000000 --- a/gheb/docusign-bundle/4.5/config/routes/docusign.yaml +++ /dev/null @@ -1,2 +0,0 @@ -docusign: - resource: '@DocusignBundle/Resources/config/routing.xml' diff --git a/gheb/docusign-bundle/4.5/manifest.json b/gheb/docusign-bundle/4.5/manifest.json deleted file mode 100644 index bdd9924e..00000000 --- a/gheb/docusign-bundle/4.5/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "bundles": { - "\\DocusignBundle\\DocusignBundle": ["all"] - }, - "copy-from-recipe": { - "config/": "%CONFIG_DIR%/" - } -} diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml new file mode 100644 index 00000000..2f380534 --- /dev/null +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -0,0 +1,38 @@ +docusign: + demo: "%kernel.debug%" + mode: embedded # Mode used to sign (remote or embedded) + + # Authentication credentials to log into docusign. + auth_jwt: + private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" + integration_id: "%env(DOCUSIGN_INTEGRATION_ID)%" + user_guid: "%env(DOCUSIGN_USER_GUID)%" + + # Your DocuSign account id + account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" + + default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. + default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. + + api_uri: "https://www.docusign.net/restapi" # DocuSign api uri. When demo is true, the bundle replace it by `https://demo.docusign.net/restapi` + + callback: "docusign_callback" # Your route where to redirect the user after signature + + # To sign you need to generate a route to call. + # The route name will be formated `docusign.sign.{signaturename}` for this one it will be `docusign.sign.my_embedded_signature` and will have `my_embedded_signature` as attribute type + # By defining this, you have a full control over the security applied to this route. see https://symfony.com/doc/current/security/access_control.html + sign_path: '/my/embedded/sign/path' + + # Where to position the signature + signatures: + # this is an array of positions, you can have multiple signatures locations per pages + - + page: 1 # Default + x_position: 200 # Top left corner in pixels + y_position: 400 # Top left corner in pixels + + # Defines where are stored the documents + storage: + adapter: 'local' + options: + directory: '%kernel.project_dir%/var/storage/default' diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json new file mode 100644 index 00000000..7a2eef4d --- /dev/null +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -0,0 +1,17 @@ +{ + "bundles": { + "\\DocusignBundle\\DocusignBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "DOCUSIGN_PRIVATE_KEY_PATH": "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem", + "DOCUSIGN_INTEGRATION_ID": "UUID-DOCUSIGN-INTEGRATION-KEY", + "DOCUSIGN_USER_GUID": "UUID-DOCUSIGN-USER-GUID", + "DOCUSIGN_ACCOUNT_ID": 1234567 + }, + "gitignore": [ + "/%CONFIG_DIR%/jwt/*.pem" + ] +} diff --git a/gheb/docusign-bundle/5.0/post-install.txt b/gheb/docusign-bundle/5.0/post-install.txt new file mode 100644 index 00000000..2fbf1cab --- /dev/null +++ b/gheb/docusign-bundle/5.0/post-install.txt @@ -0,0 +1,9 @@ + + You just installed Docusign Bundle! + What's next? + + + * Read the documentation at: + https://github.com/GregoireHebert/docusign-bundle + * Edit the .env file to adapt the authentication settings. + * Edit the config/packages/docusign.yaml file to configure your documents signatures. From c6bb99c439eb3ed3527b73deaff835d245eaa708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 15:41:44 +0100 Subject: [PATCH 07/15] fix string value --- gheb/docusign-bundle/5.0/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json index 7a2eef4d..fa69a588 100644 --- a/gheb/docusign-bundle/5.0/manifest.json +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -9,7 +9,7 @@ "DOCUSIGN_PRIVATE_KEY_PATH": "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem", "DOCUSIGN_INTEGRATION_ID": "UUID-DOCUSIGN-INTEGRATION-KEY", "DOCUSIGN_USER_GUID": "UUID-DOCUSIGN-USER-GUID", - "DOCUSIGN_ACCOUNT_ID": 1234567 + "DOCUSIGN_ACCOUNT_ID": "1234567" }, "gitignore": [ "/%CONFIG_DIR%/jwt/*.pem" From 6dada89998ee5403a8b1f06736a21ef53c0553d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 15:44:45 +0100 Subject: [PATCH 08/15] enforce int for environment variable --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index 2f380534..f532cf57 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -9,7 +9,7 @@ docusign: user_guid: "%env(DOCUSIGN_USER_GUID)%" # Your DocuSign account id - account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" + account_id: "%env(int:DOCUSIGN_ACCOUNT_ID)%" default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. From d0d1f3bcc266f018019290c91c6179ecb526919f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 15:51:37 +0100 Subject: [PATCH 09/15] fix connfiguration key --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 2 +- gheb/docusign-bundle/5.0/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index f532cf57..10ab314e 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -5,7 +5,7 @@ docusign: # Authentication credentials to log into docusign. auth_jwt: private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" - integration_id: "%env(DOCUSIGN_INTEGRATION_ID)%" + integration_key: "%env(DOCUSIGN_INTEGRATION_KEY)%" user_guid: "%env(DOCUSIGN_USER_GUID)%" # Your DocuSign account id diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json index fa69a588..da2f3c53 100644 --- a/gheb/docusign-bundle/5.0/manifest.json +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -7,7 +7,7 @@ }, "env": { "DOCUSIGN_PRIVATE_KEY_PATH": "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem", - "DOCUSIGN_INTEGRATION_ID": "UUID-DOCUSIGN-INTEGRATION-KEY", + "DOCUSIGN_INTEGRATION_KEY": "UUID-DOCUSIGN-INTEGRATION-KEY", "DOCUSIGN_USER_GUID": "UUID-DOCUSIGN-USER-GUID", "DOCUSIGN_ACCOUNT_ID": "1234567" }, From 177b1c2d6fe04abf0e9f1aa3e680aea2470860ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 16:03:45 +0100 Subject: [PATCH 10/15] remove int: --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index 10ab314e..4d8704a9 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -9,7 +9,7 @@ docusign: user_guid: "%env(DOCUSIGN_USER_GUID)%" # Your DocuSign account id - account_id: "%env(int:DOCUSIGN_ACCOUNT_ID)%" + account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. From 439058888d2dc082dddf06e15cee2a2fce9f4215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 18:08:28 +0100 Subject: [PATCH 11/15] remove envvar since it cannot be evaluated before configuration validation --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 8 ++++---- gheb/docusign-bundle/5.0/manifest.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index 4d8704a9..a9d75ef6 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -4,12 +4,12 @@ docusign: # Authentication credentials to log into docusign. auth_jwt: - private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" - integration_key: "%env(DOCUSIGN_INTEGRATION_KEY)%" - user_guid: "%env(DOCUSIGN_USER_GUID)%" + private_key: "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem" + integration_key: "51b176de-3298-460b-8201-f73e323eee14" # Replace by yours + user_guid: "51b176de-3298-460b-8201-f73e323eee14" # Replace by yours # Your DocuSign account id - account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" + account_id: 1234567 default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json index da2f3c53..ae709204 100644 --- a/gheb/docusign-bundle/5.0/manifest.json +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -6,9 +6,9 @@ "config/": "%CONFIG_DIR%/" }, "env": { - "DOCUSIGN_PRIVATE_KEY_PATH": "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem", - "DOCUSIGN_INTEGRATION_KEY": "UUID-DOCUSIGN-INTEGRATION-KEY", - "DOCUSIGN_USER_GUID": "UUID-DOCUSIGN-USER-GUID", + "DOCUSIGN_PRIVATE_KEY_PATH": "", + "DOCUSIGN_INTEGRATION_KEY": "", + "DOCUSIGN_USER_GUID": "", "DOCUSIGN_ACCOUNT_ID": "1234567" }, "gitignore": [ From 671d9e61f99ea20d814478f6793bd05a01868bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Mon, 18 Nov 2019 18:09:11 +0100 Subject: [PATCH 12/15] remove envvar since it cannot be evaluated before configuration validation --- gheb/docusign-bundle/5.0/manifest.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json index ae709204..fc90c6a2 100644 --- a/gheb/docusign-bundle/5.0/manifest.json +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -5,12 +5,6 @@ "copy-from-recipe": { "config/": "%CONFIG_DIR%/" }, - "env": { - "DOCUSIGN_PRIVATE_KEY_PATH": "", - "DOCUSIGN_INTEGRATION_KEY": "", - "DOCUSIGN_USER_GUID": "", - "DOCUSIGN_ACCOUNT_ID": "1234567" - }, "gitignore": [ "/%CONFIG_DIR%/jwt/*.pem" ] From 008dbc0157a3ca5d486f75867ac8672348450d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Fri, 29 Nov 2019 11:58:41 +0100 Subject: [PATCH 13/15] rollback to environment variables --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 8 ++++---- gheb/docusign-bundle/5.0/manifest.json | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index a9d75ef6..f7467fe2 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -4,12 +4,12 @@ docusign: # Authentication credentials to log into docusign. auth_jwt: - private_key: "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem" - integration_key: "51b176de-3298-460b-8201-f73e323eee14" # Replace by yours - user_guid: "51b176de-3298-460b-8201-f73e323eee14" # Replace by yours + private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" + integration_key: "%env(DOCUSIGN_INTEGRATION_KEY)%" + user_guid: "%env(int:DOCUSIGN_USER_GUID)%" # Your DocuSign account id - account_id: 1234567 + account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. diff --git a/gheb/docusign-bundle/5.0/manifest.json b/gheb/docusign-bundle/5.0/manifest.json index fc90c6a2..da2f3c53 100644 --- a/gheb/docusign-bundle/5.0/manifest.json +++ b/gheb/docusign-bundle/5.0/manifest.json @@ -5,6 +5,12 @@ "copy-from-recipe": { "config/": "%CONFIG_DIR%/" }, + "env": { + "DOCUSIGN_PRIVATE_KEY_PATH": "%kernel.project_dir%/%CONFIG_DIR%/jwt/docusign.pem", + "DOCUSIGN_INTEGRATION_KEY": "UUID-DOCUSIGN-INTEGRATION-KEY", + "DOCUSIGN_USER_GUID": "UUID-DOCUSIGN-USER-GUID", + "DOCUSIGN_ACCOUNT_ID": "1234567" + }, "gitignore": [ "/%CONFIG_DIR%/jwt/*.pem" ] From 8cd415650a02a3a82716bf5e4ff38f2e13c5d9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Fri, 29 Nov 2019 12:01:44 +0100 Subject: [PATCH 14/15] fix type env var --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index f7467fe2..10ab314e 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -6,10 +6,10 @@ docusign: auth_jwt: private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" integration_key: "%env(DOCUSIGN_INTEGRATION_KEY)%" - user_guid: "%env(int:DOCUSIGN_USER_GUID)%" + user_guid: "%env(DOCUSIGN_USER_GUID)%" # Your DocuSign account id - account_id: "%env(DOCUSIGN_ACCOUNT_ID)%" + account_id: "%env(int:DOCUSIGN_ACCOUNT_ID)%" default_signer_name: "Grégoire Hébert" # Name of the person that will be notified and will sign the document if none is sent to the url. default_signer_email: "gregoire@les-tilleuls.coop" # Mail of the person that will be notified and will sign the document if none is sent to the url. From fc690225a05dd6d29eef2eaeeaba51053590816b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Fri, 29 Nov 2019 12:19:34 +0100 Subject: [PATCH 15/15] add int: and resole: on env vars --- gheb/docusign-bundle/5.0/config/packages/docusign.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml index 10ab314e..46494e2a 100644 --- a/gheb/docusign-bundle/5.0/config/packages/docusign.yaml +++ b/gheb/docusign-bundle/5.0/config/packages/docusign.yaml @@ -4,7 +4,7 @@ docusign: # Authentication credentials to log into docusign. auth_jwt: - private_key: "%env(DOCUSIGN_PRIVATE_KEY_PATH)%" + private_key: "%env(resolve:DOCUSIGN_PRIVATE_KEY_PATH)%" integration_key: "%env(DOCUSIGN_INTEGRATION_KEY)%" user_guid: "%env(DOCUSIGN_USER_GUID)%"