Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What's New in ASP.NET Identity - TRINUG Sept 2014

927 views

Published on

An overview of ASP.NET Identity. Presented at the Triangle .NET User Group.

Published in: Software
  • Be the first to comment

  • Be the first to like this

What's New in ASP.NET Identity - TRINUG Sept 2014

  1. 1. ASP.NET IDENTITY TRINUG: SEPTEMBER 10, 2014 @SMITHDEREKM
  2. 2. atoms bits
  3. 3. AUTHENTICATION AUTHORIZATION
  4. 4. https://www.flickr.com/photos/124857260@N08/
  5. 5. HISTORY Roll your Own ASP.NET Membership
  6. 6. THIS HAPPENED…
  7. 7. THEN THIS HAPPENED…
  8. 8. HISTORY Roll your Own ASP.NET Membership ASP.NET Identity
  9. 9. DESIGN GOALS Improved User Profiles Improved Persistence Social Login Azure Active Directory OWIN integration One ASP.NET
  10. 10. 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
  11. 11. DEMO FILE; NEW PROJECT;
  12. 12. SOCIAL LOGIN 1. Enable Provider 2. Set up app on Social Network • https://apps.twitter.com • https://developer.facebook.com 3. Set keys 4. Build and run.
  13. 13. DEMO SOCIAL LOGIN
  14. 14. PROFILE DATA 1. Enable-Migrations 2. Add properties to ApplicationUser class 3. Update Database schema 4. Capture from User Interface 5. Persist
  15. 15. DEMO USER PROFILE
  16. 16. 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
  17. 17. 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/AddingTwoFactorAuthent icationToAnASPNETApplication.aspx
  18. 18. DEREK SMITH @smithderekm www.codeovereasy.com DSMITH-14 for free trial

×