Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASP .NET MVC Authorization Training Videos

Similar presentations


Presentation on theme: "ASP .NET MVC Authorization Training Videos"— Presentation transcript:

1 ASP .NET MVC Authorization Training Videos
for Beginner by Courseing

2 Controller Security and ASP.NET Identity
Highlights Controller Security and ASP.NET Identity Configuring local authentication User manager Role based authorization Seeding roles and assignments

3 Controller Security and ASP.NET Identity
ASP.NET Core Identity is an secured authorization system. Adds login functionality to applications. Users have to create an account and login with user details. It is introduced to substitute ASP.NET membership and simple membership systems. ASP.NET provides many controllers to secure the user’s personal details and preferences. <asp:Login> controller provides standard login capabilities to the users.

4 Controller Security and ASP.NET Identity
<asp:LoginName> controller display the name of the logged-in user. <asp:LoginStatus> controller displays logged-in user is authenticated or not. <asp:LoginView> controller provides various login views depending on the selected template. <asp:PasswordRecovery> controller provides the website administrators with the capability to the users their lost password. ASP.NET provides IPrincipal and Identity interfaces to represents the identity and role for a user. 

5 Configuring local authentication
 Verifying the identity of the user is called authentication. To configure secured authentication follow the steps open the Web.config file in solution explorer. Alter the authentication mode to Forms. Include the <Forms> tag, and attach some suitable attributes. Paste followed HTML code in <authentication> section. And deny access to anonymous users <authentication mode="Forms"> <forms name=".ASPXFORMSDEMO" loginUrl="logon.aspx" protection="All" path="/" timeout="30" /> </authentication>

6 User manager It is an interface. Allows users to merge s, FTP, and web disk accounts into a single Subaccount.  Also allows users to add, handle, and remove Subaccounts. s, FTP, and web disk of same username can merge into one subaccount. To create a subaccount follow the below steps. create a new Subaccount, click Add User.

7 User manager 2. Enter the full name and username. 3. Select the suitable domain from the Domain menu. Enter a contact address for the user and password. After confirming password select subaccount's services. Click Create, or Create and Add Another User to add another account. FTP allows users to deal with website's files, Web Disk utility allows you to manage and manipulate files on your server.

8 Role based authorization
Helps to control user authorizations. Allows to define roles and assign roles to users. ASP .NET uses social identities for authentication and authorization. Role creation will be complete using IdentityRole class which provides properties like Id, Name for creating roles for the applications. If any user registered with the application, they will be given the desired Role. Register() action method is useful to complete the operation of assigning roles to the users.

9 Seeding roles and assignments
ASP.NET applications come with four authentication model choices, they are individual user accounts, work and school accounts, Windows accounts, no authentication. To seed roles and assignments first store role names in models. Create an class to place a method which will create the initial roles and users in the app’s membership database. Define a method which will create the roles and users.

10 We would love to hear from you whatever you think about the course.
Feedback Like It ? Hate It? We would love to hear from you whatever you think about the course. Click HERE to share what you think!

11 ASP .NET MVC Authorization Training Videos
Thank you Thank You for Watching ASP .NET MVC Authorization Training Videos for Beginner by Courseing


Download ppt "ASP .NET MVC Authorization Training Videos"

Similar presentations


Ads by Google