Screen clipping taken:
Configuration for the first 4 Users: localhost applicationhost. config <Location Path = "">
The second configuration: Web. config
Key points:
- Although these six items are listed together, they are not at the same level in the application;
- The first four are for IIS verification. You do not need to submit the user name and password for verification. The other three are required;
- Form authentication is an ASP. NET authentication that passes web page authentication. To reach this authentication, you must pass IIS authentication (because after a request enters the server, it is sent to IIS and then to ASP.. NET application), that is, if form verification is required, the first four must start one;
- The default account running in Asp.net is specified by the process mode identifier (in the application pool). For example, you can use the web. to simulate other accounts (<identity impersonate = "false" Password = "*****" username = "Administrator"/>) by calling system. security. principal. windowsidentity. getcurrent (). name to view this account
Screen clipping taken:
- Authing with authentication in Web. config:
Form Verification -- form
Windows verification-Windows
IIS Authentication Configuration