ASP.NET MVC Identity

  • Published on
    14-Jul-2015

  • View
    290

  • Download
    5

Transcript

  • ASP.NET Identity

    Eric

  • ASP.NET Identity

  • OAuthMembership

  • Facebook, Google

  • Web Application

  • Email+SMS

  • Sample Code

  • Identity?

  • ASP.NET , PHP,.

  • ...

  • ...

  • Schema OAO...

  • ASP.NET Membership A.D. 2005Too Ancient

  • ASP.NET Simple Membership

  • ASP.NET Universal Provider Code FirstOWIN

  • ASP.NET Identity 1.0

  • ASP.NET Identity 2.0

  • 2.2.0-alpha... (?

  • BUG FIXED

  • OWIN

  • Code First

  • IdentityUser

  • //Add Custom Column

  • Claims Email Id

    Logins PasswordHash Roles

    PhoneNumber SecurityStamp UserName

  • ClaimsIdentity NoSQL

  • UserManager

  • ChangePasswordAsync

    CreateAsync(user)

    CreateAsync(user,pass)

    DeleteAsync FindAsync FindByIdAsync

    FindByNameAsync UpdateAsync Users

  • AuthenticationManager

  • RoleManager

  • Register + Login

  • Create Roles

  • SetRole+Authorize(Role=A)

  • AddClaim+ClaimsAuthorize

  • Email Validation OhI Forgot Password

  • Facebook Login Just A Piece Of Cake

  • Nuget

    Install-Package Microsoft.Owin.Security.Facebook

  • I got a key

  • Nuget

    Install-Package Microsoft.AspNet.Identity.EntityFramework

    Install-Package Microsoft.AspNet.Identity.OWIN

    Install-Package Microsoft.Owin.Host.SystemWeb

    update-package

  • Lets Set Up an Empty Project with Identity