I am working on developing/configuring a SSO between my a .NET and SharePoint 2010 Foundation site. I have been working on this for a couple days and haven't had any luck. I have a DEV server I am currently working on to make this work properly. Both of these applications will be hosted locally on IIS, but mapped to the same domain.
I created a .NET web application and have it hosted on a local ip as claims.mydomain.com I set the web.config to connect to my AD through a membership provider. I am able to login and see information about the user. I also setup the forms with the following code:
<authentication mode="Forms"> <forms loginUrl="Login.aspx" timeout="300000" domain=".mydomain.com" />
I added this same membership provider/connection string to my STS and Central Admin web.config's. Below is what I added to both as well as the connection string.
<add name="MyMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ConnString" connectionUsername="User" connectionPassword="Pass" connectionProtection="None" attributeMapUsername="userPrincipalName"/>
I created a new claims web application in Sharepoint and used the host header sharepoint.mydomain.com (which I have mapped to a different local IP). I set this to use the same membership provider as the .NET app. I was able to succesfully add users from my Active Directory to the user policy of this application from Central Admin (so it is getting the users correctly) I was then able at sharepoint.mydomain.com to users in Active directory.
<membership defaultProvider="i"> <providers> <add name="i" type="Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add name="MyMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ConnString" connectionUsername="User" connectionPassword="Pass" connectionProtection="None" attributeMapUsername="userPrincipalName"/> </providers>
I made sure all the machineKey in both the web application and Sharepoint application are the same as well.
I am at a loss here. I have followed tons of different methods from the web but can't seem to get this to work. Does anybody have any ideas as to what I could be doing wrong?