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

  • Question

  • 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.


    Wednesday, July 31, 2013 2:01 PM

All replies

  • Hi,

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

    Thanks,


    Shabih

    Thursday, December 11, 2014 4:38 PM
  • Did you able to resolve the problem?

    SP Nagarro

    Thursday, April 9, 2015 6:08 AM