Skip to main content

Appendix E – Integration with an external application

In addition to the known and internal verification options, an external application can also be used for verification. This is usually easier than using your own plugin.
To do this, add the following lines to gateway.conf

authToken.name = myToken
authToken.exec = C://MyApps//auth.exe %1

SparkView will replace %1 with the value of the token in the WebSocket URL. The application can then verify or decrypt this value. Additional parameters can also be written back to standard output. These have the following format:

__SG_ARGS=true\tArg1=v1\tArg2=v2

The output must start with __SG_ARGS=true\t, where the different arguments are then separated by the tab character (\t). SparkView will then add these parameters back to the WebSocket URL.