...
Code Block |
---|
|
<system.web>
...
<authentication mode="Forms">
<forms loginUrl="~/Lynicon/Login" timeout="2880" />
</authentication>
<machineKey validationKey="..." decryptionKey="..." validation="SHA1" decryption="AES" />
<membership defaultProvider="LightweightMembershipProvider">
<providers>
<clear />
<add name="LightweightMembershipProvider" type="Lynicon.Membership.LightweightMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" initPassword="init" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" />
</providers>
</membership>
<roleManager defaultProvider="LightweightRoleProvider" enabled="true">
<providers>
<clear />
<add applicationName="/" name="LightweightRoleProvider" type="Lynicon.Membership.LightweightRoleProvider" />
</providers>
</roleManager>
...
</system.web> |
The <machineKey> element can have requires unique key values to be entered, these can be generated onĀ this url.
Also you need to add this line to Global.asax.cs:
Code Block |
---|
|
protected void Application_OnPostAuthenticateRequest(object sender, EventArgs e)
{
LyniconSecurityManager.Current.EnsureLightweightIdentity();
} |