PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
arrOAuthParam is array of gpwOAuthParameters
arrOAuthParam = gpwListOAuthParameters()
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
Parameters is gpwOAuthParameters = arrOAuthParam[1]
sCode is string = gpwAuthLogin(Parameters)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
User is gpwUser
sToken is string
(sToken, User) = gpwRemoteConnect(Parameters, 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> [, <Trust 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
6-digit code returned by the two-factor authentication application (Google Authenticator or Miccrosoft Authenticator, for example).
<Trust key>: Buffer
Trust key used if the user checked the "Trusted device" option for the two-factor 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: wd280gpu.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment