Login & User Javascript APIs
(Difference between revisions)
Ariana.luna (Talk | contribs) (→APIs) |
Renato.neves (Talk | contribs) |
||
Line 52: | Line 52: | ||
| [[socialid.login.automaticFacebookLogin]] | | [[socialid.login.automaticFacebookLogin]] | ||
| Automatically logs a user in using the Facebook Javascript SDK. | | Automatically logs a user in using the Facebook Javascript SDK. | ||
+ | |- | ||
+ | | <span style="color: green">[[socialid.login.clusteringFeatures]]*</span> | ||
+ | | API to get user clustering features.<span style="color: green">(*) not available in production yet</span> | ||
|} | |} | ||
Revision as of 18:48, 13 November 2015
APIs
Resource | Description |
---|---|
socialid.login.init | Initializes the API to be used by a Social Login application. |
socialid.login.renderLoginWidget | Renders the Social Login widget within a DOM element. |
socialid.login.renderConnectWidget | Renders the Social Connect widget within a DOM element. |
socialid.login.startLogin | Starts the social login process for the given provider. It could open a popup dialog or redirect to the provider, depending on the loginType. |
socialid.login.startConnect | Opens the popup dialog to connect a new provider credential in the current login session. |
socialid.login.startLoginClick | Starts the social login process for the given provider when the user clicks on a DOM element. |
socialid.login.startConnectClick | Opens the popup dialog to connect a new provider credential in the current login session when the user clicks on a DOM element. |
socialid.login.disconnect | API to disconnect a provider from the current login session. |
socialid.login.logout | API to logout the user (destroy the current login session). |
socialid.login.logoutWithFacebook | API to logout the user previously logged in by the Facebook Automatic Login. |
socialid.login.getUserInfo | API to get basic information about the user logged into the current login session. |
socialid.login.loginConnection | API to automatically log in a user given its connection_id. |
socialid.login.loginUserToken | API to automatically log in a user given its user_token. |
socialid.login.loginCredentials | API to automatically log in a user given its social networks credentials. |
socialid.login.moveTo | API to move data from the user logged into the current login session to another user and then removes it. |
socialid.login.automaticFacebookLogin | Automatically logs a user in using the Facebook Javascript SDK. |
socialid.login.clusteringFeatures* | API to get user clustering features.(*) not available in production yet |
Events
Event | Description |
---|---|
socialid.events.onLoginSuccess | Triggered when the user completes the login process successfully. |
socialid.events.onLoginCancel | Triggered when the user cancels the login process (does not authorizes the social login). |
socialid.events.onLoginError | Triggered when an error occurs during the login process. |
socialid.events.onLoginStart | Triggered when the user starts the login process. |
socialid.events.onConnectSuccess | Triggered when the user completes the connection of a new provider credential successfully. |
socialid.events.onConnectCancel | Triggered when the user cancels the connection of a new provider credential (does not authorizes the social login). |
socialid.events.onConnectError | Triggered when an error occurs during the connection of a new provider credential. |
socialid.events.onConnectStart | Triggered when the user starts the connection of a new provider credential. |
socialid.events.onDisconnectSuccess | Triggered when the user disconnects some provider successfully. |
socialid.events.onDisconnectError | Triggered when an error occurs during the disconnection of some provider. |
Examples
- Social Login Javascript API Complete Code
- Social Connect Javascript API Complete Code
- Example Application: https://sid-examples.herokuapp.com/social_logins
- Javascript API Playground: https://sid-examples.herokuapp.com/social_logins/playground