Note that there are some explanatory texts on larger screens.

plurals
  1. POShare authentication cookie/membership provider between two sites - second site never authenticates
    primarykey
    data
    text
    <p>I have two ASP.NET 4.0 sites on Win2008R2 IIS7, e.g. demo1.site.domain.com and demo2.site.domain.com, and I want to have single sign on. I have searched around and have configured the web.config of both sites like so</p> <pre><code>&lt;machineKey validationKey="ABCDEFG" decryptionKey="HIJKLMN" validation="SHA1" /&gt; &lt;roleManager defaultProvider="RoleName"&gt; &lt;providers&gt; &lt;add name="RoleName" type="Assembly.RoleProvider, Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a1b2c3d4e5f6g7h8i9" /&gt; &lt;/providers&gt; &lt;/roleManager&gt; &lt;membership defaultProvider="MembershipName"&gt; &lt;providers&gt; &lt;add name="MembershipName" type="Assembly.MembershipProvider, Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a1b2c3d4e5f6g7h8i9" /&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;authentication mode="Forms"&gt; &lt;forms loginUrl="http://demo1.site.domain.com/login.aspx" name=".ASPXAUTH" domain="domain.com" protection="All" path="/" /&gt; &lt;/authentication&gt; &lt;authorization&gt; &lt;deny users="?" /&gt; &lt;/authorization&gt; </code></pre> <p>In other words the machine key is the same on both web sites and the membership/role providers exist in the assembly of the first site and is used by the second.</p> <p>The problem I've got is that it doesn't work. I have used fiddler to see what is happening and the auth cookie is never sent to the second site so it always redirects to the login page. </p> <p>Am I missing something obvious? </p> <p>Thanks, Nik</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload