Cloud CMS provides connectors that allow your application to integrate with third-party social systems such as Facebook, Twitter or LinkedIn for login, single-sign-on (SSO), profile retrieval and API access.
The following social providers are supported:
To connect your mobile application via Cloud CMS to any provider, simply provide links or buttons on your page that, when clicked, send a POST to the following address:
When POSTing to the URL above, the Cloud CMS API server will redirect the browser to the appropriate provider (Twitter). Twitter will ask the user if they wish to grant access to Cloud CMS. If they say yes, they will be redirected back to Cloud CMS along with a code that it used by Cloud CMS to retrieve an access token.
Cloud CMS then looks to see if it knows about a user that has an identity with a Twitter connection that matches this Twitter ID and token.
If it has one, the user is automatically logged in and the browser is redirected back to the application with the access token in the hash.
If it does not have one, the user is taken to a registration page where they can create an account.
Once a user account is either discovered or created, the Twitter access token and user profile is stored as part of a Twitter connection object attached to the user's identity. In this way, the access token is stored within the user's identity for future use. Among other things, it is used to retrieve the user's Twitter profile.
Note that the user's Twitter password is NEVER acquired or exposed.
Once you've agreed to let the provider (Twitter) share data with Cloud CMS, you can have Cloud CMS automatically interact with the provider on behalf of the user. This may include profile synchronization or additional functionality such as posting content, traversing the user's social graph or more. All that is required is that the end user grant sufficient privileges for these capabilities to work.