summaryrefslogtreecommitdiff
path: root/demos/providers/protected/application.xml
blob: 4763b2a69c39045023c5c7b9e2f337e11a5b7f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>

<application id="Providers" mode="Debug">

	<modules>
		<module id="FormsAuthentication"
			class="System.Web.Security.TFormsAuthenticationModule"
			defaultProvider="MembershipProvider"/>
		
		<module id="MembershipProvider" 
			class="System.Configuration.TProtectedConfiguration"
			defaultProvider="SqlMembershipProvider" >
    		<provider 
    			id="SqlMembershipProvider" 
    			Description="Our SQL Membership provider"
    	      	class="System.Web.Security.TSqlMembershipProvider" 
    	      	ConnectionStringName="SqlMembershipProvider"
    	      	Enabled="true"
    	      	EnablePasswordReset="True"
				EnablePasswordRetrieval="True"
				MaxInvalidPasswordAttempts="5"
				MinRequiredNonAlphanumericCharacters="5"
				MinRequiredPasswordLength="5"
				PasswordAttemptWindow="5"
				PasswordStrengthRegularExpression=""
				RequiresQuestionAndAnswer="True"
				RequiresUniqueEmail="True"/>
    	</module>
    
		<module id="RoleProvider"
			class="System.Configuration.TProtectedConfiguration"
			defaultProvider="SqlRoleProvider">
    	    <provider 
    	    	id="SqlRoleProvider"
    	    	class="System.Web.Security.TSqlRoleProvider"
    	     	ConnectionStringName="SqlRoleProvider" 
    	      	ApplicationName="SampleApplication" 
    	      	Enabled="true"
    	  		CacheRolesInCookie="True"
    	  		CookieName="PRADO"
    	  		CookieTimeout="30"
    	  		CookiePath="/"
    	  		CookieRequireSSL="False"
    	  		CookieSlidingExpiration="True"/>
		</module>
	</modules>
</application>