GetTokenConnectionStatus() function
- Last UpdatedOct 23, 2024
- 1 minute read
Retrieves status of the connection to the AVEVA Identity Manager and CONNECT in AVEVA Operations Control connected experience. You can use this for offline connected experience as well.
Syntax
The syntax of the script function is as follows:
resultcode = GetTokenConnectionStatus();
Resultcode indicates the token for connection status.
Return value
-
Resultcode is 0 when the application is connected to both AVEVA Identity Manager and CONNECT.
-
Resultcode is 1 when the the application is connected to AVEVA Identity Manager and disconnected from CONNECT.
-
Resultcode is 2 when the the application is disconnected from both AVEVA Identity Manager and CONNECT.
-
Resultcode is 3 when the AVEVA Identity Manager is refreshed while the machine is disconnected and connection to CONNECT is restored.
-
Resultcode is 4 when signed in with the Microsoft Windows Active Directory (AD) credentials in offline connected experience.
-
Resultcode is 5 when signed in with a Microsoft Windows Active Directory (AD) credentials in offline connected experience and connection to CONNECT is restored.
-
Resultcode is 6 when AVEVA Identity Manager and CONNECT connection fails but the user had successfully authenticated previously with their AVEVA ID or Microsoft Windows Active Directory (AD) credentials.
Example:
int AccessTokenStatus=GetTokenConnectionStatus()