Defines a Google Login / Logout action component.
This component helps login in or logout using Google. It uses Google login to authenticate users.
Setup needs some configuration. Declare your app in https://developers.google.com/mobile/add?platform=android&cntapi=signin for Android apps.
Use https://developers.google.com/mobile/add?platform=ios&cntapi=signin for iOS apps.
See also some documentation on https://ionicframework.com/docs/native/google-plus about the Cordova plugin used.
You can access the data from the next action in the chain in (TS) mode with:
• out.email: The email
• out.userId: the user id
• out.displayName: the display name
• out.familyName: the family name
• out.givenName: the given name
• out.imageUrl: the image url
• out.idToken: the id token
• out.serverAuthCode: the server authentication code
• out.accessToken: the access token
Whenever cordova platform is not available, the value defined in mocked response option is returned.
Default mocked value for login are {email: 'user@convertigo.com', userId: 'my_id', displayName: 'John Doe', familyName: 'Doe', givenName: 'John', imageUrl: 'http://saffroninteractive.com/wp-content/uploads/2017/10/empty-avatar2.png', idToken'my_id_token', serverAuthCode: '12', accessToken: 'my_access_token'}
.
Default mocked value for logout is true
.
Name | Description |
---|---|
Action | The action to do can be Login or Logout. |
Mocked access token login | The mocked response access token for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked display name | The mocked response display name for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked email | The mocked response email for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked family name | The mocked response family name for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked given name | The mocked response given name for the GooglePlus login action in case of running not supported platform. Must be a boolean. |
Mocked id token | The mocked response token for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked image url | The mocked response image url for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked response logout | The mocked response logout for the GooglePlus login action in case of running not supported platform. Must be a boolean. |
Mocked server auth code login | The mocked response server auth code for the GooglePlus login action in case of running not supported platform. Must be a string. |
Mocked user id | The mocked response user id for the GooglePlus login action in case of running not supported platform. Must be a string. |
Web Client ID | The web client ID (Optional). Has to be set if you want to retrieve an ‘idToken’ or a ‘serverAuthCode’. |
Comment | Describes the object comment to include in the documentation report. This property generally contains an explanation about the object. |
Is active | Defines whether the component is active. |