Note that there are some explanatory texts on larger screens.

plurals
  1. POForms authentication ignored in virtual application
    text
    copied!<p>I have an admin site set up as a virtual applcation inside of another website.</p> <p>I would like visitors to the sub directory (the virtual application) to be promtped for credentials using the same Forms authentication set up on the main parent site</p> <p>Have tried all sorts of things but can't get it to work, including</p> <p>Removing all <code>&lt;authentication mode="Forms"&gt;</code>, <code>&lt;authorization&gt;</code>, <code>&lt;membership&gt;</code> and <code>&lt;roles&gt;</code> sections from the virtual-app web.config</p> <p>Copying the same <code>&lt;authentication mode="Forms"&gt;</code>, <code>&lt;authorization&gt;</code>, <code>&lt;membership&gt;</code> and <code>&lt;roles&gt;</code> sections from the parent to the virtual-app web.config</p> <p>Using a virtual directory instead of virtual application</p> <p>But I never get promted for credentials</p> <p>Anyone know how to get this setup?</p> <p>thanks</p> <p>UPDATE:</p> <p>Have now got it to inherit permissions from the parent, by deleting the application name in IIS (to make it a virtual directory rather than a virtual application)</p> <p>However, this screws all the paths in the admin site</p> <p>e.g. I get the following error</p> <p>The file '/Site.master' does not exist.</p> <p>So should I be using a virtual directory (which seems to inherit authentication from the parent)?</p> <p>Or a virtual application (which currently doesn't inherit auth from the parent but has the correct relative paths)?</p> <p>Here's the parent config</p> <pre><code>&lt;membership defaultProvider="SqlServerMembershipProvider"&gt; &lt;providers&gt; &lt;add connectionStringName="xxxxxxxx" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="SqlServerMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;roleManager enabled="true" defaultProvider="SqlServerRoleProvider"&gt; &lt;providers&gt; &lt;add connectionStringName="xxxxxxx" applicationName="/" name="SqlServerRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&gt; &lt;/providers&gt; &lt;/roleManager&gt; &lt;authentication mode="Forms"&gt; &lt;forms name=".EPiServerLogin" loginUrl="login.aspx" timeout="120"/&gt; &lt;/authentication&gt; &lt;authorization&gt; &lt;deny users="?"/&gt; &lt;/authorization&gt; </code></pre>
 

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