PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
SaaSConnect (Function)
In french: SaaSConnecte
Authenticates a user of a SaaS site beside the SaaS webservice that manages the site.
Remark: When the connection is established with SaaSConnect, it is possible to access all sites. SaaSCheckService is used to check the access rights.
Example
// Connexion au Webservice en charge du site
IF SaaSConnect(SAI_LOGIN, SAI_PASSWORD) = False THEN
IF ErrorOccurred = True THEN
sMessageErreur = CR + ErrorInfo(errFullDetails)
RETURN sMessageErreur
ELSE
RETURN "Connexion au site SaaS refusée."
END
END
 
// On passe une syntaxe spécifique (sans paramètres) pour indiquer que l'on teste l'accès au site
// Le client a au moins un abonnement valide à au moins un service du site
IF SaaSCheckService() = False THEN
IF ErrorOccurred = True THEN
sMessageErreur = CR + ErrorInfo(errFullDetails)
RETURN sMessageErreur
ELSE
RETURN "Connexion au service SaaS du site refusée."
END
END
 
// Utilisation de la connexion à la base HFSQL Client/Serveur ou Classic
// définie dans l'administrateur SaaS sur le serveur, pour les données du site.
IF HChangeConnection("*", SaaSClientConnection()) = False THEN
sMessageErreur = HErrorInfo(hErrFullDetails)
RETURN sMessageErreur
END
 
RETURN "Connexion OK"
Syntax
<Result> = SaaSConnect(<User> , <Password> [, <Webservice>])
<Result>: Boolean
  • True if the authentication was successful,
  • False otherwise. To get the details of the error, use ErrorInfo.
<User>: Character string
Connection name of SaaS user.
<Password>: Character string
Password of SaaS user.
<Webservice>: Optional character string
Webservice to use. This parameter corresponds to:
  • the host name of the SaaS webservice (for example, "Computer", "Computer.MyNetwork.com", "http://Mydomain.com").
  • the full URL of the SaaS webservice (for example, "http://domain.com/WDSAAS270_WEB/WDSaaS270.awws").
By default, the connection will be established to the SaaS webservice installed with the WEBDEV application server on the local computer.
Remarks
  • If SaaSConnect is run several times, an implicit disconnection is performed every time (SaaSDisconnect).
  • When the connection has been established with SaaSConnect, the SaaS webservice periodically tests the validity of the connection by automatically calling SaaSIsConnected every 4 minutes.
  • If authentication is successful, the next SaaSxx functions will implicitly use the SaaS account specified in the last SaaSConnectfunction call. The runtime context will be closed by SaaSDisconnect.
  • To reinforce security, it is recommended to use HTTPS protocol both to access the page containing the SaaSConnect function call and in the URL of the Webservice. The server must be configured to accept this protocol.
  • If the Webservice is accessed in HTTPS, the SSL certificate used must not produce any security exception.
  • Versions 16 and later
    SaaSChangePassword is used to modify the password of the connected user.
    New in version 16
    SaaSChangePassword is used to modify the password of the connected user.
    SaaSChangePassword is used to modify the password of the connected user.
Component: wd270com.dll
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment