|
|
|
|
|
- Properties specific to the description gpwOAuthParameters variables
gpwOAuthParameters (Variable type) In french: gpwOAuthParamètres
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 a parameter to gpwAuthLogin. If successful, this function returns a Buffer to use with gpwRemoteConnect. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. 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
Properties Properties specific to the description gpwOAuthParameters variables The following properties can be used to handle the information required to perform the authentication: | | | Property name | Type used | Effect |
---|
AuthURL | Character string | Authorization URL to be used (first URL of OAuth 2.0 specification). | ClientID | Character string | Client ID provided by the service when registering the application. | Identifier | Integer | Identifier of the provider used. | Name | Character string | Name of the provider used. | Type | Integer constant | Type of login that allows for authentication: - gpwFacebook Login using a Facebook account.
- gpwGoogle Login using a Google account.
- gpwMicrosoft Connection using a Microsoft MSN account.
- gpwSalesforce: Login using a Salesforce account.
- gpwYahoo Connection using a Yahoo account.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|