Installation Instructions¶
Preparations¶
- Check that the requirements are met.
- Get familiar with the following things:
- Go through the internal Lime Technologies documentation for eSign on how to configure electronic identifications and TRAML.
What the customer needs to prepare or answer before the installation:
- Which email address should be used as a from address?
- Ensure email deliverability: Lime Marketing Deliverability Toolbox
- What is the public url to the Lime CRM server?
- Prepare for opening firewall/proxy for inbound traffic to the Lime CRM server as described here.
- Which signing methods should be used? (Checkbox, Swedish BankID, Norwegian BankID, Danish MitID, Finnish Trust Network (FTN))
- Should eSign be used in both Desktop and Web client?
- Which limetypes it should be possible to start the signing flow from?
- Which users should be able to initiate signings? Lime eSign is a subscription per user.
Installation¶
This is your checklist during the installation. For installations in shared cloud, go to step 3.
- Add limepkg-esign as a dependency to your solution.
- Build and deploy your solution.
- In Lime Admin, go to the Setup page in eSign's settings and follow the installation instructions.
- Configure in LISA.
- Configure Transactional Message Library (TRAML).
- Configure Lime Gävle's signing services.
- Configure the add-on.
- Set up desktop client.
- Ensure/configure internet access if on-premise.
Warning
The installation is based on a Lime CRM Base Solution. This means that unwanted tables and fields could be created and manual hand-laying be required.
Info
Example: If the deal
table is named business
in your database structure, the installation will create a completely new table called deal
because it has a relation to the Signing table. Solution: Manually remove the Deal table completely and add a relation from the Signing table to the Business table instead.
LISA¶
Additional Data Structure¶
-
Add a new option with
key = 'signedagreement'
on the fielddocument.type
:Swedish English Danish Norwegian Finnish Dutch Key Signerat avtal - eSign Signed agreement - eSign Signeret aftale - eSign Signert avtale - eSign Allekirjoitettu sopimus - eSign Ondertekende overeenkomst - eSign signedagreement
User Group Permissions¶
- During the installation, the group
Lime eSign users
was created. Make all users that should be able to use Lime eSign a member of this group. The name of this group must later be added to the configuration in Lime Admin. - Create two new table specific policies called
tbl_signing
andtbl_signer
. Only give access to the groupLime eSign users
according to the table below. -
Add the two policies on the tables
signing
andsigner
.Policy name R W A D Apply to tbl_signing • signing table tbl_signer • signer table Warning
The group
Lime eSign users
should NOT have W and A on the policiestbl_signing
andtbl_signer
even though it would seem logical! -
Make sure that all users that are members of the
Lime eSign users
group, also have permissions to other tables that eSign uses. Preferably these permissions should come through other already existing groups (e.g. "Users", "Users Sweden" or "Sales" etc.) or object access. The table below shows which permissions that must be in place.R W A D Apply to • • coworker table • • document table • • • history table • • ALL other configured tables configured for Lime eSign, either as related limetypes or signer parents. Examples: person, deal, company
Info
In case there are limetypes with object access (like documents, deals etc.), object access will be honored and the objects might not be available for the user to create a signing on.
Impersonate User¶
For security reasons, the endpoint used by the eSign portal implements impersonation. During the installation, the impersonate user portal@limeesign
was created and added to the Administrators group. This user must not be a member of any other groups and should later be added to the configuration in Lime Admin.
TRAML¶
Lime eSign is using the TRAML lib to send emails. There are two scenarios here:
- The customer does not already use TRAML: Lime eSign provides a shared site at Lime Marketing where the email templates needed are provided.
- The customer has their own Lime Marketing account and are using TRAML already: The email templates needed must be copied to this account.
Depending on which is true, you need to set up TRAML differently.
- Do one of the following:
- Set up TRAML for Shared Account: Follow the internal Lime Technologies documentation for how to create a new customer specific API key to the shared Lime Marketing account. Keep in mind: Do not use or do not remove an already existing API-key!
- Set up TRAML for Own Account (should only be used if the customer are using TRAML for other things): Copy the email templates
esign-with-action-button
andesign-without-action-button
from the shared account to your specific account. Follow the internal documentation for more details. Keep in mind: Do not remove or modify these templates, just copy them!
- Configure TRAML.
- Add the names of the email templates in the runtime config. The ones used for the shared account are
esign-with-action-button
andesign-without-action-button
.
Electronic Identification Services¶
Lime eSign currently has support for the following:
- Swedish BankID
- Norwegian BankID
- Danish MitID
- Finnish Trust Network (FTN)
If any of these should be used as a signing option, you need to set up one of the following signature services and retrieve the API key and token needed in the application configuration. The selected integration service should be configured in the runtime config.
- Lime BankID SE Service: Use this service if only BankID SE should be used (among the supported electronic identifications).
- Lime Signatures Service (Criipto): Use this service if at least one out of BankID NO, Danish MitID or Finnish Trust Network (FTN) should be used. Also supports BankID SE1. Additional international providers may be enabled in the future in this service. You can find further information about the service here.
Please follow the internal Lime Technologies documentation on how to enable these services.
PAdES Support¶
In order to enable PAdES, an API key to the Lime Technologies service PDF Manager is required. Follow internal Lime Technologies documentation on how to retrieve an API key. It must then be added to the application config. Finally, check 'Enable PAdES' in Lime Admin under Settings -> eSign, i.e., in the runtime config.
Desktop Client¶
These steps are only necessary if eSign is supposed to be used from the Lime CRM Desktop Client.
- Add the LBS apps from the
apps
folder in the LIP package to theActionpads\apps
folder. -
If your Lime CRM application already has an Actionpad for the document card: Add the code below to the
document.html
Actionpad. Adjust document if you are using another limetype for documents.<div data-app="{ app: 'addon_esign', config: { 'limetypeDocument': 'document' } }"> </div>
-
Add the same code to the Actionpads for each limetype from where you want to be able to start the eSign flow (that you have configured as
additionalLimetypes
). Adjust document if you are using another limetype for documents. - Make sure to add
lbs.html
as Actionpad for the tablessigning
anddocument
in LISA. If you cannot find the tables in LISA, refresh the browser. - In LISA: Add Descriptive Expressions to the tables
signing
andsigner
according to the files in the LIP package underlisa/descriptives
. - Add the icons from the folder lisa\icons in the LIP package to the tables
signing
andsigner
in LISA. - Add the icons for the Actionpad headers for
signing
anddocument
inactionpads\resources
folder on the server. The icons are found in the folderactionpads\resources
in the LIP package. - Compile and save in VBA.
- Publish the Actionpads.
- Configure user-friendly views and set up relevant filters and infotiles for the customer. E.g. My ongoing signings.
Internet Access On-premise¶
Public Access¶
In order for non-Lime users to access the Lime eSign portal, some parts of the Lime CRM server must be publicly exposed to the internet. Some customers already have the full server exposed, some don't. Exactly how to minimize the exposure is up to the customer's IT department to solve, but using a proxy is one solution2. The URL patterns that must be exposed for Lime eSign to work are:
SERVER_URL_IN_LIME_ADMIN/static/limepkg_esign/*
- portalSERVER_URL_IN_LIME_ADMIN/APPNAME/limepkg-esign/portal/*
- portal endpoints
SERVER_URL_IN_LIME_ADMIN
is referring to the public Server Url entered in the Lime Admin config.
Internet Access for Outgoing Traffic¶
The Lime CRM server must have internet access for outgoing traffic in order to send emails and support signatures using electronic identification, such as BankID.
- IP range that is used to send emails can be found here.
- IP addresses that is used to sign with electronic identification:
185.140.117.156
and193.183.196.18
.