PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description gpwOAuthParameters variables
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
The gpwOAuthParameters type allows you to define all the information needed for authentication to the user groupware via an application that uses the OAuth 2.0 standard. These characteristics can be modified using different WLanguage properties.
This type of variable must be passed as parameter to gpwAuthLogin. If successful, this function returns a Buffer to use with gpwRemoteConnect.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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
Remarks

Properties specific to the description gpwOAuthParameters variables

The following properties can be used to handle the information required to perform the authentication:
Property nameType usedEffect
ClientIDCharacter stringClient identifier supplied by the service when registering the application.
IdentifierIntegerIdentifier of the provider used.
NameCharacter stringName of the provider used.
TypeInteger constantType of login that allows for authentication:
  • gpwFacebook: Login with a Facebook account.
  • gpwGoogle: Login with a Google account.
  • gpwMicrosoft: Login with a Microsoft MSN account.
  • gpwSalesforce: Login with a Salesforce account.
  • gpwYahoo: Login with a Yahoo account.
AuthURLCharacter stringAuthorization URL to be used (first URL of OAuth 2.0 specification)
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment