8. Using the Legacy-interop module
The Legacy-interop module works in the same way as the old Wrapper.
There is one small, but very important difference however:
In the new API you can provide a PluginApiOptions
configuration object to the Plugin instance when initializing. This configuration object is used in the SignID module to receive the SignID-specific configuration. For SignID this will contain the gateway endpoint, a pkcs11 config, etc. and is essential.
The legacy-interop PluginApi
implementation (PluginApiInterop
) accepts this PluginApiOptions
object in its constructor, while the original implementation did not.
var pluginApiOptions = {
activationToken: '<activation token goes here>'
extraOptions: {
gclOptions: {
gwOrProxyUrl: '<distribution service url goes here>'
}
}
};
// in the original implementation the pluginApiOptions object was not needed.
var pluginApi = new connective.ConnectivePluginApi(pluginApiOptions);
Tip: for more information about the gclOptions object, see step 2.