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.