PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Allows you to connect to the User Groupware using authentication with an account such as Facebook, Google, Microsoft, etc.
Versions 25 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
New in version 25
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Example
WINDEVWEBDEV - Server code
Identity is OpenIDIdentity = gpwAuthLogin(gpwFacebook)
Versions 25 and later
AndroidiPhone/iPad
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
(User, sToken) = gpwRemoteConnect(Parameters, sCode)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
New in version 25
AndroidiPhone/iPad
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
(User, sToken) = gpwRemoteConnect(Parameters, sCode)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
AndroidiPhone/iPad
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
(User, sToken) = gpwRemoteConnect(Parameters, sCode)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
Syntax
WINDEVWEBDEV - Server code
<Result> = gpwAuthLogin(<Type> [, <Subscript>])
<Result>: OpenIDIdentity variable
OpenIDIdentity variable that contains the user information.
<Type>: Integer constant
Type of login that allows for authentication:
gpwConnectionStandard login with a user that has been created and registered.
gpwFacebookLogin with a Facebook account.
gpwGoogleLogin with a Google account.
gpwMicrosoftLogin with a Microsoft MSN account.
gpwSalesforceLogin with a Salesforce account.
gpwYahooLogin with a Yahoo account.
<Subscript>: Optional integer
Subscript of the custom connection when adding it with gpwAddAuthLogin. To use this parameter, <Type> must correspond to the constant gpwConnection.
Remark: The login information has been described and added via gpwAddAuthLogin.
Versions 25 and later
AndroidiPhone/iPad
<Result> = gpwAuthLogin(<Parameter>)
<Result>: Buffer
User identification code to use with gpwRemoteConnect.
<Parameter>: gpwOAuthParameters variable
Name of the gpwOAuthParameters variable that contains the characteristics of the OAuth application to use for authentication.
New in version 25
AndroidiPhone/iPad
<Result> = gpwAuthLogin(<Parameter>)
<Result>: Buffer
User identification code to use with gpwRemoteConnect.
<Parameter>: gpwOAuthParameters variable
Name of the gpwOAuthParameters variable that contains the characteristics of the OAuth application to use for authentication.
AndroidiPhone/iPad
<Result> = gpwAuthLogin(<Parameter>)
<Result>: Buffer
User identification code to use with gpwRemoteConnect.
<Parameter>: gpwOAuthParameters variable
Name of the gpwOAuthParameters variable that contains the characteristics of the OAuth application to use for authentication.
Remarks
If a login error occurs, ErrorOccurred is set to True. The error can be known via ErrorInfo.
Business / UI classification : Neutral code
Component : wd250gpu.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment