The walkthroughs in the Security QuickStart are shipped with a defined configuration, which is included in the App.config file. This file is located in the same folder as the QuickStart project file and has the following settings.
Authorization Configuration
Authorization is configured as follows:
- Name: RuleProvider
- Type: Authorization Rule Provider
- Rules:
- Print Document: NOT I:?
- Hire Employee: R:Manager OR R:HumanResources
- Submit New Order: (R:Employee AND (NOT I:Bob))
Security Cache Configuration
The cache is configured as follows:
- Name: Caching Store Provider
- AbsoluteExpiration: 60
- CacheManager: Default Cache Manager
- SlidingExpiration: 10
Caching Application Block Configuration
The Caching Application Block is configured as follows:
- Cache managers:
- Name: Default Cache Manager
- ExpirationPollFrequencyInSeconds: 60
- MaximumElementsInCacheBeforeScavenging: 1000
- NumberToRemoveWhenScavenging: 10
To change or view these settings, use the Enterprise Library configuration tools to open the App.config file in the directory containing the QuickStart project file. The App.config file contains the configuration data.
You can also change the application configuration when you do not plan to recompile the application by opening the SecurityQuickStart.exe.config file with the Enterprise Library configuration tools. However, these changes will be overwritten during the next successful build.