PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Security of the connection
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SaaSAdminConnect (Function)
In French: SaaSAdminConnecte
Connects and authenticates the administrator of SaaS Webservice.
Note: SaaSAdminConnect is reserved to:
  • the SaaS administrator (a single administrator, whose login is "admin": this name is reserved).
  • the account managers (at least 1 for each client account)
These two types of administrator can be connected simultaneously:
  • The SaaS administrator is an administrator.
  • The account managers are users with more rights (on the client accounts and their users only).
Example
// Connect to the SaaS database (required to use the management functions)
IF SaaSAdminConnect("admin", "secret") = False THEN
Error("You are not allowed to connect as administrator" + ...
CR + ErrorInfo(errFullDetails))
END
IF SaaSAdminConnect("admin", "mypassword", ...
"http://www.mydomain_or_ip.com/WDSAAS230_WEB/awws/WDSaaS230.awws") = False THEN
Error("You are not allowed to connect as administrator" + ...
CR + ErrorInfo(errFullDetails))
END
Syntax
<Result> = SaaSAdminConnect(<User> , <Password> [, <Address of SaaS Webservice> [, <Required Level>]])
<Result>: Boolean
  • True if the connection was established,
  • False otherwise. To find out the error details, use ErrorInfo.
<User>: Character string (with quotes)
Login of administrator of SaaS system.
Note: In this version, the administrator account is always the "admin" account.
<Password>: Character string (with quotes)
Password of the administrator of the SaaS system.
The default password is "admin". We strongly recommend that you modify the password of the administrator at the end of setup.
<Address of SaaS Webservice>: Optional character string (with quotes)
  • Name of the server (name or IP address),
  • Full address of the SaaS Webservice.
If this parameter is not specified, the Webservice of the local computer is used.
<Required Level>: Optional constant or combination of Integer type optional constants
Versions 16 and later
Required level for connecting:
saasAdministrator
(default value)
Required Level: Administrator.
saasAccountManagerRequired Level: Account manager.
These two constants can be combined.
New in version 16
Required level for connecting:
saasAdministrator
(default value)
Required Level: Administrator.
saasAccountManagerRequired Level: Account manager.
These two constants can be combined.
Required level for connecting:
saasAdministrator
(default value)
Required Level: Administrator.
saasAccountManagerRequired Level: Account manager.
These two constants can be combined.
Remarks

Security of the connection

For a secured operating mode, we recommend that you use the HTTPS protocol. The server must be configured to accept this protocol and the SSL certificate used must not trigger any security warning.
To increase the security of the SaaS site, the Webservice can be installed on a computer that is not accessible publicly but only from the Application Server that hosts the SaaS site. Therefore, the requests made to the Webservice cannot be intercepted.

Special cases

  • To use the SaaSAdminxxx functions, a connection must have been successfully established by SaaSAdminConnect.
  • To end a management session, all you have to do is use SaaSAdminDisconnect.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Linux wd230com.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment