Post on 08-Jun-2015
description
ASP.NETIDENTITYTRINUG: SEPTEMBER 10, 2014
@SMITHDEREKM
atoms bits
AUTHENTICATION
AUTHORIZATION
https://www.flickr.com/photos/124857260@N08/
HISTORY
Roll your Own ASP.NET Membership
THIS HAPPENED…
THEN THIS HAPPENED…
HISTORY
Roll your Own ASP.NET Membership
ASP.NET Identity
DESIGN GOALS
One ASP.NET
Improved Persistence
Improved User Profiles
OWIN integration
Social Login Azure Active Directory
RELEASES
1.0 October 2013 VS 2013
2.0 March 2014
NuGet Only Adds 2FA
2.1 Aug 2014 VS 2013 Update 3
Adds SignInManager
DEMOFILE; NEW PROJECT;
SOCIAL LOGIN1. Enable Provider
2. Set up app on Social Network
• https://apps.twitter.com• https://developer.facebook.com
3. Set keys
4. Build and run.
DEMOSOCIAL LOGIN
PROFILE DATA1. Enable-Migrations
2. Add properties to ApplicationUser class
3. Update Database schema
4. Capture from User Interface
5. Persist
DEMOUSER PROFILE
CONVERTING TO ASP.NET IDENTITY• Update Data Schema
• Script copying of user records in to new schema
• Update ApplicationUser object
• Add PasswordHasher to handle existing passwords. Register with UserManager
• Write migration code to retrieve profile data and save to user.
• Test and verify
• http://www.asp.net/identity/overview/migrations
RESOURCES• http://www.asp.net/identity/overview/getting-started
• http://www.asp.net/identity/overview/migrations
• https://aspnetidentity.codeplex.com/
• http://www.hanselman.com/blog/AddingTwoFactorAuthenticationToAnASPNETApplication.aspx
@smithderekm
www.codeovereasy.com
DEREK SMITH
DSMITH-14 for free trial