ASP.NET MVC Authorization Training Videos for Beginner - PowerPoint PPT Presentation

About This Presentation
Title:

ASP.NET MVC Authorization Training Videos for Beginner

Description:

ASP.NET MVC Authorization deals with controller-security,ASP.NET identity,ASP.NET MVC local-authentication,ASP.NET user manager,ASP.NET role based-authorization,ASP.NET seeding roles and assignments briefly and also provides free videos,online and classroom training resources on ASP.NET – PowerPoint PPT presentation

Number of Views:51

less

Transcript and Presenter's Notes

Title: ASP.NET MVC Authorization Training Videos for Beginner


1
ASP .NET MVC Authorization Training Videos for
Beginner by
2
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
    users personal details and preferences.
  • ltaspLogingt controller provides standard login
    capabilities to the users.

4
Controller Security and ASP.NET Identity
  • ltaspLoginNamegt controller display the name of
    the logged-in user.
  • ltaspLoginStatusgt controller displays logged-in
    user is authenticated or not.
  • ltaspLoginViewgt controller provides various login
    views depending on the selected template.
  • ltaspPasswordRecoverygt controller provides the
    website administrators with the capability to
    email 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 ltFormsgt tag, and attach some suitable
    attributes.
  • Paste followed HTML code in ltauthenticationgt
    section. And deny access to anonymous users
  • ltauthentication mode"Forms"gt ltforms
    name".ASPXFORMSDEMO" loginUrl"logon.aspx"
    protection"All" path"/" timeout"30" /gt
    lt/authenticationgt

6
User manager
  • It is an interface.
  • Allows users to merge emails, FTP, and web disk
    accounts into a single Subaccount. 
  • Also allows users to add, handle, and remove
    Subaccounts.
  • Emails, 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 email 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 apps
    membership database.
  • Define a method which will create the roles and
    users.

10
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
Thank you
Thank You for Watching ASP .NET MVC
Authorization Training Videos for Beginner by
http//www.courseing.com
Write a Comment
User Comments (0)
About PowerShow.com