ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2024 feature!
Help / WLanguage / WLanguage functions / Web-specific functions / WEBDEV Application Server remote control functions
  • Two-factor authentication
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deletes an application from a WEBDEV Application Server.
Example
AdminAccount is WBAdminAuth
AdminAccount.ServerAddress = "https://myserver.com"
AdminAccount.User = "user"
AdminAccount.Password = "password"

Applications is array of WBAdminApplication
Applications = WBAdminListApplication(AdminAccount)
FOR i = 1 _TO_ Applications.Count  
    	IF Applications[i].Type = WBAdminTypeSite THEN
		// Deletes a site
		WBAdminDeleteApplication(AdminAccount, Applications[i].OwnerAccount, Applications[i].Name, WBAdminTypeSite)
	END
END
Syntax
<Result> = WBAdminDeleteApplication(<WEBDEV Application Server> , <Owner account> , <Application name> , <Application type>)
<Result>: Boolean
  • True if the application was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<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.
<Owner account>: Character string
Application owner account.
<Application name>: Character string
Name of the application to be uninstalled.
<Application type>: Integer constant
Type of application to be deleted:
WBAdminTypeSiteWEBDEV website.
WBAdminTypeRESTWebserviceREST web services.
WBAdminTypeSOAPWebserviceSOAP web services.
WBAdminTypeWebSocketWebSockets.
Remarks
New in version 2024

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 determine if the error is due to the authentication process, you need 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.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/10/2024

Send a report | Local help