This repository was archived by the owner on Jan 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Configure Login
guy-mograbi-at-gigaspaces edited this page Feb 25, 2013
·
2 revisions
The login feature enables the you to force a login when someone click "play" on the widget and before the widget starts.
This post describes how to configure the login. To see API details and examples go to Integrating Widget With Login
- User clicks "play" on the widget.
- The widget does not start - instead a JavaScript event is triggered.
- You should intercept the event and start your login cycle.
- User finishes your login cycle - now you have a user ID to represent the user
- You send us the user ID you have using the same event mechanism.
- You tell the widget to start again
- Optional - the widget verifies the user ID with the given verification URL
- The widget starts.
- Click the "actions" menu.
- Click on "require login"
- Check "Require login" if you wish to turn the feature on.
- Optional - Fill in URL that we can verify the user ID we got.
In order to avoid fraud, we allow you to specify a URL pattern
for example :
http://example.com?userId=$userId&token=my-secret-token
We will inject the value of the userId we got from you and POST to this address. This gives you the opportunity to verify the userId is valid. In case the userId is valid, return 200, otherwise return 500.