Once installed, the WorkView Client API needs to be configured to work with your specific installation. To configure the WorkView Client API:
-
Locate the appsettings.json file for the WorkView Client API. In a default installation, it is located in the following directory: C:\Program Files\Hyland\wvclientapi\config
CAUTION: Be very careful when updating the JSON configuration files. If a copy exists with a similar naming scheme (for example, appsettings.backup.json), and that copy is not deleted, the incorrect JSON configuration file may be used. Configuration files are read in lexicographic order, or the order in which they are loaded. This means that the last file saved is the first file loaded. The order of precedence for the loading of the configuration sources is: 1) appsettings.json file, 2) appsettings.{AltName}.json file, 3) Key-per-file directories, 4) Environment variables, and 5) Command Line arguments. As a result, if a JSON configuration file is configured with an alternate name, and is the most recently saved version of the JSON configuration file, the file with the alternate name will take precedence, which causes major errors during login.
- Open the appsettings.json file.
-
In the ApiServerUrl setting edit the path to point to the location of the WorkView Rest API within the API Server. In a default installation, the path would be similar to this, where my.domain is replaced with your domain and apiserver is replaced with the location of your API Server installation:
"ApiServerUrl": "https://my.domain/apiserver/onbase/workview/",
Note:Ensure that you include the / at the end of the path.
-
In the AllowedOrigins setting, point to the server that has the WorkView Client installed. The following is an example where my.domain is replaced with your domain:
"AllowedOrigins": "https://my.domain/WVCLIENT"
-
In the AppServerURL setting edit the path to point to the location of the OnBase Application Server. In a default installation, the path would be similar to this, where machinename is replaced with the server's machine name and AppServer is replaced with the location of your Application Server installation:
"AppServerURL": "https://machinenane/AppServer/"
-
Set the IdP Address to IdP path. The following is an
example where my.domain is replaced with your domain and indentityprovider is
replaced with the location of your IdP installation:
"IdP: { {"Address": "https://my.domain/identityprovider",