|
|
|
|
|
- Properties specific to WBAdminAuth variables
- Miscellaneous
- Functions that use WBAdminAuth variables
WBAdminAuth (Variable type) In french: adminWBAuth
The WBAdminAuth type allows you to define all the advanced characteristics of the API used to remotely manage a WEBDEV Application Server. You can define and change the characteristics of this API using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. wbAuthLogin is WBAdminAuth
wbAuthLogin.ServerAddress = "https://mon-serveur.interne/"
wbAuthLogin.User = "WWW\DATA"
wbAuthLogin.Password = "www"
ConnexionsWB is array of WBAdminConnection = WBAdminListConnection(wbAuthLogin)
IF ErrorOccurred = True THEN
Info(ErrorInfo)
RETURN
END
FOR i = 1 _TO_ ConnexionsWB.Count
Trace(ConnexionsWB[i].Site)
Trace(DateTimeToString(ConnexionsWB[i].DateTimeStartConnection))
Trace(DurationToString(ConnexionsWB[i].IdleTime, durationCenti))
END
Properties Properties specific to WBAdminAuth variables The following properties can be used to manipulate a variable of type WBAdminAuth: | | | Property name | Type used | Effect |
---|
ServerAddress | Character string | WEBDEV Application Server address, e.g. "https://www.myserver.com/". Please note: it is necessary to specify the address with the protocol used (http/https).. | OneTimePassword | Character string | One-time code used if 2-factor authentication has been enabled via the WEBDEV administration site for a given account. Remarks: - 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.
- If the different WBAdminxxx functions encounter an error identified with code "2", you need to specify the OneTimePassword property. To do so, the application must include a window (or page) where the user can enter the code received. This code can then be assigned to the OneTimePassword property.
| Password | Character string | Password associated with the user.
New in version 2025Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string". To learn more about secret strings and how to use the vault, see Secret string vault. | Port | Integer | Number of the port used (e.g., 443 by default for https). | User | Character string | Name of the user who will manage the WEBDEV Application Server. This user must be a WEBDEV administrator. |
Remarks Miscellaneous - The API used is a REST web service.
- There is no active session and the connection is authenticated at each API call.
Functions that use WBAdminAuth variables
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|