Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Configure Login

guy-mograbi-at-gigaspaces edited this page Feb 25, 2013 · 2 revisions

Require Login

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

The Cycle

  1. User clicks "play" on the widget.
  2. The widget does not start - instead a JavaScript event is triggered.
  3. You should intercept the event and start your login cycle.
  4. User finishes your login cycle - now you have a user ID to represent the user
  5. You send us the user ID you have using the same event mechanism.
  6. You tell the widget to start again
  7. Optional - the widget verifies the user ID with the given verification URL
  8. The widget starts.

Configuration

  1. Click the "actions" menu.
  2. Click on "require login"
  3. Check "Require login" if you wish to turn the feature on.
  4. Optional - Fill in URL that we can verify the user ID we got.

Verification URL

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.

Clone this wiki locally