..
ASP.NET and Visual Studio also provide useful tools for identity management and roles of users of a website. To see how to create a new website and then access the ASP.NET Configuration page, we've seen a few lessons ago. In it, select the tab and click on the link Providers Select a single provider for all site management data

then click on the link test to verify that the connection works

and if everything is ok you should see the following page

To ensure that the database functions, then we click on the Security tab and add a user directly from here, click on Create User and entering the relevant data in the following window

It 'can also change the type of authentication is from the Security tab by clicking on the link Select authentication type, and choosing one of two options (choose the first option)

Also in the Security tab click Enable roles

and then click Create or Manage roles

We create two roles: Admin and User

At this point we are going to create other users as seen before (I create users, and Paul Vincent). Note that unlike before now beside the user can select the roles which it must belong to you Vincent and I check the Admin role and the role you Paul User

If we are going to open the web.config file we will see in it the authentication parameters that we set

We must now go and set the access permissions to various resources of the site for the various roles and / or users. Also we click through the Security tab, then click Create access rules and through the following page

we set the privileges as desired. For example, we can deny access to anonymous users and anonymous users the option by checking the Deny option. What determines the inclusion of the following code in web.config

In the next lesson we will see how to handle the controls for the login.
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP.NET (Course)
Full course for building Web applications from 49 €. |
| |
SQL and Database (Course)
Create and manage relational databases. From 39 €. |