ASP.NET MVC Identity 介紹

  • Published on
    14-Jul-2015

  • View
    294

  • Download
    5

Embed Size (px)

Transcript

<ul><li><p>ASP.NET Identity</p><p> Eric</p></li><li><p>ASP.NET Identity</p></li><li><p>OAuthMembership</p></li><li><p>Facebook, Google </p></li><li><p> Web Application </p></li><li><p> Email+SMS</p></li><li><p>Sample Code</p></li><li><p>Identity?</p></li><li><p> ASP.NET , PHP,.</p></li><li><p>... </p></li><li><p>...</p></li><li><p>Schema OAO...</p></li><li><p>ASP.NET Membership A.D. 2005Too Ancient</p></li><li><p>ASP.NET Simple Membership</p></li><li><p>ASP.NET Universal Provider Code FirstOWIN</p></li><li><p>ASP.NET Identity 1.0</p></li><li><p>ASP.NET Identity 2.0</p></li><li><p>2.2.0-alpha... (?</p></li><li><p>BUG FIXED</p></li><li><p>OWIN</p></li><li><p>Code First</p></li><li><p>IdentityUser</p></li><li><p>//Add Custom Column</p></li><li><p>Claims Email Id</p><p>Logins PasswordHash Roles</p><p>PhoneNumber SecurityStamp UserName</p></li><li><p>ClaimsIdentity NoSQL</p></li><li><p>UserManager</p></li><li><p>ChangePasswordAsync</p><p>CreateAsync(user)</p><p>CreateAsync(user,pass)</p><p>DeleteAsync FindAsync FindByIdAsync</p><p>FindByNameAsync UpdateAsync Users</p></li><li><p>AuthenticationManager</p></li><li><p>RoleManager</p></li><li><p>Register + Login</p></li><li><p>Create Roles</p></li><li><p>SetRole+Authorize(Role=A)</p></li><li><p>AddClaim+ClaimsAuthorize</p></li><li><p>Email Validation OhI Forgot Password</p></li><li><p>Facebook Login Just A Piece Of Cake</p></li><li><p>Nuget </p><p>Install-Package Microsoft.Owin.Security.Facebook</p></li><li><p>I got a key</p></li><li><p>Nuget</p><p>Install-Package Microsoft.AspNet.Identity.EntityFramework </p><p>Install-Package Microsoft.AspNet.Identity.OWIN </p><p>Install-Package Microsoft.Owin.Host.SystemWeb </p><p>update-package</p></li><li><p>Lets Set Up an Empty Project with Identity</p></li></ul>