Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

GetSecureAccessToken() Function

  • Last UpdatedJul 26, 2024
  • 1 minute read

GetSecureAccessToken () provides secure authentication token, which will be accepted by controls like Trend Control, Alarm Client Control and other InTouch controls, to support Single Sign-On functionality.

Syntax

The syntax of the script function is as follows:

resultCode = GetSecureAccessToken();

Resultcode indicates the latest access token.

Example:

To get the secured token value renewed every time it expires, you can use the script as follows:

  1. In the Symbol Script window, select Add Script.

  2. Provide a name to the script.

  3. Select the Display Script Function Browser icon.

  4. In the Script Browser screen, under InTouch, select GetSecureAccessToken to insert the script function or you can manually type.

  5. Select OK.

Script function browser showing GetSecureAccessToken script

Return Value

The GetSecureAccessToken script function returns the access token with the a token value, if user is authenticated using CONNECT.

The GetSecureAccessToken script function returns an empty string, if user is not authenticated using CONNECT.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in