|
|
|
|
|
- Two-factor authentication
<WBAdminAuth variable>.ListConnection (Function) In french: <Variable adminWBAuth>.ListeConnexion Returns the list of current connections on a WEBDEV Application Server. wbAuthLogin is WBAdminAuth
wbAuthLogin.ServerAddress = "https://my-server.internal/"
wbAuthLogin.User = "WWW\DATA"
wbAuthLogin.Password = "www"
WBConnections is array of WBAdminConnection = wbAuthLogin.ListConnection()
IF ErrorOccurred = True THEN
Info(ErrorInfo)
RETURN
END
FOR i = 1 _TO_ WBConnections.Count
Trace(WBConnections[i].Site)
Trace(WBConnections[i].DateTimeStartConnection.ToString())
Trace(WBConnections[i].IdleTime.ToString(durationCenti))
END
Syntax
<Result> = <WEBDEV Application Server>.ListConnection()
<Result>: Array Array of WBAdminConnection variables corresponding to each current connection on the server. If an error occurs, the ErrorOccurred variable is set to True. <WEBDEV Application Server>: WBAdminAuth variable Name of the WBAdminAuth variable that describes the server and the administrator account used to query the WEBDEV Application Server. Remarks Two-factor authentication You can enable two-factor authentication for an account through the Remote WEBDEV administrator. Two-factor authentication requires a unique code to verify the user's identity. This code can be received by email or via an Authenticator app. When you use WEBDEV Application Server functions, you may encounter authentication errors if the account uses two-factor authentication. Two cases must be taken into account: - the function returns a boolean and <Result> is False. To check if it is an authentication error, it is necessary to check the value of the ErrorOccurred variable and the value returned by ErrorInfo.
- the function does not return a boolean. To determine if the error is due to the authentication process, the following conditions must be met:
To fix this error: - Create a window/page where users can enter their verification code.
- If an error occurs due to two-factor authentication:
- Open the verification code input window.
- Users automatically receive the authentication code according to the method chosen in the Remote WEBDEV administrator. They can then enter the code in the window or page.
- Assign the code to the OneTimePassword property of the WBAdminAuth variable.
- Run the function again.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|