The Bazaarvoice Mobile SDKs provide access to most of the core products Bazaarvoice offers. To learn more, go to the Mobile SDK documentation home page.
This page explains how developers can authenticate authors with the Bazaarvoice Mobile SDK by submitting a user ID along with the consumer generated content.
User IDs come from your login system, which is considered to be the authoritative (master) source for user identification. This is also referred to as "client site-auth" because it relies on your site authentication system.
After a user is authenticated inside your user login workflow, use the
BVSDK instance to set up the user authentication token.
The Product Recommendations module of the Bazaarvoice Mobile SDKs support adding an authenticated user for shopper profile matching.
Adding user information
The user auth string is an encrypted query string. In the documentation above,
date=20070527&userid=ID12345 is used as an example. This is then encrypted/signed appropriately for security. Add information such as identity and demographics in this query string, for example:
Allowed keys include:
userid, age, email, facebookId, gender, twitterId. This information can then be safely passed to the
BVSDK instance, as shown in the following example:
Refer to the Client-Mastered Authentication tutorial for detailed instructions on how to create the encrypted query string.
Setting the auth string
The example below demonstrates how to set the encrypted user auth string using the
setUserAuthString has been called, Bazaarvoice will begin matching data to this user's profile. The process runs nearly in real-time, but is not instant. The Mobile SDK will poll to update the user profile and should reflect the user's interests within seconds.