The Gigya service generates several global application events for various situations that are driven by user interactions.
Global application events are fired whenever the event to which they refer occurs, regardless of what was the action that triggered the event.
This is in contrast to plugin events, which are only fired by the specific plugin on which they were configured.
This method allows setting event handlers for each of the supported global events.
To learn more about how to handle events generated by Gigya, please refer to the Events page in the Developer's Guidesee Events.
The following is a list of available global application events:
|eventName||string||The name of the event: 'login'.|
|source||string||The source plugin that generated this event. The value of this field is the name of the plugin's API method, e.g. 'showLoginUI'.|
Note: this field will not be available if the source of this event is not a plugin (e.g. if the source is a socialize.login API call).
|context||object||The context object passed as a parameter to the plugin/method that triggered this event, or null if no object was passed.|
|loginMode||string||The type of login:|
|provider||string||The name of the provider that the user used in order to login (e.g. "Facebook"). Note: If this event is fired as a result of a socialize.notifyLogin call, i.e. the user was authenticated by your site, the provider field will be set to "site".|
|signatureTimestamp||string||The GMT time of the response in UNIX time format (i.e. the number of seconds since Jan. 1st 1970). The time stamp should be used for login verification, as described under the Validate the UID Signature in the Social Sign-On Process section.|
|UID||string||The User ID that should be used for login verification*.|
|UIDSignature||string||The signature that should be used for login verification, as described under the Validate the UID Signature in the Social Sign-On Process section.|
|user||User object||A User object with updated information for the current user.|
|signature||string||Deprecated . Please use the UIDSignature parameter instead.|
|timestamp||string|| Deprecated . Please use the signatureTimestampparameter instead.|
This parameter holds the GMT time of the response in "yyyy-mm-dd HH:mm:ss" format where HH is in 24 hour time format.
* To learn more about login verification, please refer to the Validate the UID Signature in the Social Login Process section in the Security page of the Developer's Guide.