IIS Authentication Configuration
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
- Authing with authentication in web. config:
Form Verification -- Form
Windows verification-Windows