Need help in implementing SSO between SharePoint and .Net application with FBA

Hello,

    I need your help in fixing the issue. Please respond asap. I can give you more details about my configuration.

  • SharePoint WebApplication is FBA enabled on 5555 port number and url is "http://demosite.com:5555/Pages/default.aspx"
  • .Net Application is also FBA enabled on port number 7777 and url is "http://demosite.com:7777/Home.aspx" 
  • Using Same Sql MembershipProvider, RoldProvider and using same Sql DB for both the applications
  • MachineKey is also same
  • You can see the hostHeaders in the url provided above as same "demosite.com"
  • Individually both the applications are working great with their FBA
  • Need to implement SSO between them

Entries same in both the portal's web.configs

1.

for SharePoint

 <authentication mode="Forms">
      <forms name="nameOfCookie"
             loginUrl="/_login/default.aspx"
             timeout="2880"
             path="/"
             protection="All"
             requireSSL="false"
             enableCrossAppRedirects="true" />

for .Net

 <authentication mode="Forms">
      <forms name="nameOfCookie"
             loginUrl="~/Account/login.aspx"
             timeout="2880"
             path="/"
             protection="All"
             requireSSL="false"
             enableCrossAppRedirects="true"/>
    </authentication>

2.

<membership defaultProvider="WABFBASqlMembershipProvider">
      <providers>
        <add name="WABFBASqlMembershipProvider"
             type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
             connectionStringName="DefaultConnection"
             enablePasswordRetrieval="false"
             enablePasswordReset="true"
             requiresQuestionAndAnswer="false"
             applicationName="/"
             requiresUniqueEmail="true"
             passwordFormat="Hashed"
             maxInvalidPasswordAttempts="5"
             minRequiredPasswordLength="7"
             minRequiredNonalphanumericCharacters="1"
             passwordAttemptWindow="10"
             passwordStrengthRegularExpression="" />
      </providers>
    </membership>

3.

 <roleManager defaultProvider="WABFBASqlRoleProvider">
      <providers>
        <add name="WABFBASqlRoleProvider"
             connectionStringName="DefaultConnection"
             applicationName="/"
             type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>

4.

 <connectionStrings>
    <add name="DefaultConnection"
         providerName="System.Data.SqlClient"
         connectionString="Data Source=.;Initial Catalog=FBAdb;Integrated Security=SSPI"/>
  </connectionStrings>

5.

 <machineKey validationKey="C8B530A2F95C69C0C576B2D5C1849AFE722C0F92AC9E53E7ABE4FF3A8BD215E8F011005ED920B86B6FBC74B43957D9EDA5C3707A26EFA65FA24F177A461C7958"
                decryptionKey="49DC5C5A6E4A6BD3282B8E569CE2FF78EB7C37016DEEF99621F095A22177B482"
                validation="SHA1"
                decryption="AES" />

But with the above config what i abserved is after a successfull login from SharePoint portal its creating a cookie called "FedAuth" but .Net application is creating a cookie with the name "nameOfCookie"

Thanks,

Naveen.


July 31st, 2013 2:01pm

Hi,

I am facing exactly the same issue. Were you ever able to resolve this ?

Thanks,

Free Windows Admin Tool Kit Click here and download it now
December 11th, 2014 4:38pm

Did you able to resolve the problem?
April 9th, 2015 2:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics