COMP 1020 Lecture Notes - Asp.Net, Microsoft Visual Studio, Marvel Super Heroes Advanced Set
lavenderbeaver188 and 10 others unlocked
12
COMP 1020 Full Course Notes
Verified Note
12 documents
Document Summary
You have another way to set up your authentication and authorization rules. Rather than edit the web. config file by hand, you can use the wat from inside visual studio. The wat guides you through the process, although you"ll find it"s still important to understand what changes are actually being made to your web. config file. It"s also often quicker to enter a list of authorization rules by hand rather than use the wat. To use the wat for this type of configuration, select website asp. net configuration from the menu. A simple login page can put these methods to work with little code. To try it, begin by enabling forms authentication and denying anonymous users in the web. config, as described earlier: Now, users will be redirected to a login page named login. aspx that you need to create. With windows authentication, the web server takes care of the authentication process. Asp. net simply makes this identity available to your code for your security checks.