At SocialShare user integration is very easy. SocialShare has built in user module that can be used for a new site deployment.

If you are deploying SocialShare as a whole new site, default configuration shipped with release is enough for you. All you need to do is deploy and use.

If you want to integrate SocialShare with the existing site with existing user model, SocialShare provides 2 options

  1. You can use Asp.Net membership provider to work with SocialShare
  2. You can use built-in user model to  work with SocialShare
  3. You can use custom user model to work with SocialShare

For any of the above suitable options you need to go through maximum 3 simple configuration steps.

Step 1 : Configure Web.config
Step 2 : Configure Site.Config  
Step 3 : Configure StrategyProxyUser

Asp.Net membership provider

Step 1 : Configure Web.config:

  1. Navigate to web.config, uncomment the configurations between <!-- START MEMBERSHIP CONFIG--> and <!-- END MEMBERSHIP CONFIG-->
  2. Comment the he configurations between <!-- START CUSTOM USER MODEL CONFIG--> and <!-- END CUSTOM USER MODEL CONFIG-->

Step 2 : Configure Site.Config

  1. Navigate to the directory <SOCIALSHARE_WEB_DIRECTORY>/Site-Configs
  2. Change MEMBERSHIP_PROVIDER_USED tag value to YES i.e. <MEMBERSHIP_PROVIDER_USED>YES</MEMBERSHIP_PROVIDER_USED>


SocialShare builtin user model

No change required use built-in settings


Existing customized user model

Step 1 : Configure Web.config

  1. Navigate to web.config,find the configurations between <!-- START CUSTOM USER MODEL CONFIG--> and <!-- END CUSTOM USER MODEL CONFIG-->
  2. Change loginUrl and defaultUrl attribute value of forms tag respect to your existing site structure

Step 2 : Configure Site.Config

  1. Navigate to the directory <SOCIALSHARE_WEB_DIRECTORY>/Site-Configs
  2. Change MEMBERSHIP_PROVIDER_USED tag value to NO i.e. <MEMBERSHIP_PROVIDER_USED>NO</MEMBERSHIP_PROVIDER_USED>

Step 3 : Configure StrategyProxyUser

  1. Navigate to the directory <SOCIALSHARE_WEB_DIRECTORY>/Integrations/StrategyProxyUser.cs
  2. Find code blocks under ///Custom user model
  3. Change the data access logics respect to your existing Data Access Layer (DAL)
  4. Save the code, build the project and run

Last edited Jun 30, 2011 at 12:34 PM by galib, version 7

Comments

No comments yet.