Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IDS and version 8.2

Configuring countries available when an attribute has been listed to hold country values is possible with a script provided with the Ubisecure CustomerID installation. The countrytool script generates a countries.json file which can further be customized with a text editor if needed.

Using the Country Tool Script

The country tool script generates a countries.json file based on parameters passed to the script on the command line. The file is put into the configuration directory of Ubisecure CustomerID (C:\Program Files\Ubisecure\customerid\application\custom or /usr/local/ubisecure/customerid/application/custom on Windows and Linux respectively).

...

  • -c, --countries – list of 2-letter ISO country codes to use in the Ubisecure CustomerID installation. E.g. when invoked with parameter "-c fi se" the system supports Finland and Sweden in country type fields. Defaults to all countries.
  • -l, --languages – list of 2-letter ISO language codes for localization of country names. I.e. the languages the Ubisecure CustomerID user interface supports. By default Finnish and English.
  • -p, --prioritized – list of 2-letter ISO country codes that should be prioritized. By default the country selection list is sorted alphabetically in the current user interface language. If this parameter is given the corresponding countries will be shown first regardless of the alphabetical order.

Example Usage

On a Linux system, for instance, the country tool can be used as follows:

...

Creates a countries.json file, which contains five countries Finland, Sweden, Norway, Denmark and Russia. The names of the countries are stored in Finnish and Swedish and Finland and Sweden would be shown as first options. The configuration file countries.json is further documented below and can be customized for more complex configurations.

Configuration File countries.json

To get an idea on how the file should look the default countries list is located inside the web application in path application/webapps/eidm2/WEB-INF/countries.json under the Ubisecure CustomerID installation directory.

...