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
gpwRemoteConnect (Function)
In french: gpwConnecteDistant
Allows you to connect a remote user.
Example
tabOAuthParam is array of gpwOAuthParameters
tabOAuthParam = gpwListOAuthParameters()
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
Paramètres is gpwOAuthParameters = tabOAuthParam[1]
sCode is string = gpwAuthLogin(Paramètres)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
Utilisateur is gpwUser
sToken is string
(sToken, Utilisateur) = gpwRemoteConnect(Paramètres, sCode)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
Syntax

Connecting a remote user identified by their login and password Hide the details

(<Token>, <User>) = gpwRemoteConnect(<Login> , <Password> [, <Code> [, <Confidence key>]])
<Token>: Character string
Login token. This token must be used to connect to the application (3rd syntax of gpwRemoteConnect).
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Login>: Character string
Login or login email.
<Password>: Character string
User password.
<Code>: Character string
Versions 26 and later
6-digit code returned by the dual authentication application (Google Authenticator or Miccrosoft Authenticator for example).
New in version 26
6-digit code returned by the dual authentication application (Google Authenticator or Miccrosoft Authenticator for example).
6-digit code returned by the dual authentication application (Google Authenticator or Miccrosoft Authenticator for example).
<Confidence key>: Buffer
Versions 26 and later
Trust key in case the user has checked the "Trust the device" option during the double authentication.
New in version 26
Trust key in case the user has checked the "Trust the device" option during the double authentication.
Trust key in case the user has checked the "Trust the device" option during the double authentication.

Connecting a remote user via OAuth Hide the details

(<Token>, <User>) = gpwRemoteConnect(<Parameters> , <Code>)
<Token>: Character string
Login token. This token must be used to connect to the application (3rd syntax of gpwRemoteConnect).
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Parameters>: gpwOAuthParameters variable
Name of the gpwOAuthParameters variable that corresponds to the parameters of the OAuth connection for the application.
<Code>: Buffer
User identification code returned by gpwAuthLogin.

Re-connecting a user via their login token Hide the details

<User> = gpwRemoteConnect([<Token>])
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Token>: Optional character string
Re-login token provided by one of the previous syntaxes of gpwRemoteConnect.
Component: wd270gpu.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment