Allows you to connect to the User Groupware using authentication with an account such as Facebook, Google, Microsoft, etc.
<Result> = gpwAuthLogin(<Type> [, <Subscript>])
<Result>: OpenIDIdentity variable
OpenIDIdentity variable that contains the user information.
<Type>: Integer constant
Type of login that allows for authentication:
|gpwConnection||Standard login with a user that has been created and registered.|
|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.|
<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.
<Result> = gpwAuthLogin(<Parameter>)
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.
Application in the background: Specific case from Android 10
From Android 10, it is no longer possible to open a window when the application is in the background.
gpwAuthLogin can open a window. If this function is used while the application is in the background, a fatal error will occur.
- It is possible to determine if the application is in the background using InBackgroundMode.
- If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Business / UI classification: Neutral code