25
ASP.NET IDENTITY TRINUG: SEPTEMBER 10, 2014 @SMITHDEREKM

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

Embed Size (px)

DESCRIPTION

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

Citation preview

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

ASP.NETIDENTITYTRINUG: SEPTEMBER 10, 2014

@SMITHDEREKM

Page 2: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 3: What's New in ASP.NET Identity - TRINUG Sept 2014

atoms bits

Page 4: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 5: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 6: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 7: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 8: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 9: What's New in ASP.NET Identity - TRINUG Sept 2014
Page 10: What's New in ASP.NET Identity - TRINUG Sept 2014

AUTHENTICATION

AUTHORIZATION

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

https://www.flickr.com/photos/124857260@N08/

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

HISTORY

Roll your Own ASP.NET Membership

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

THIS HAPPENED…

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

THEN THIS HAPPENED…

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

HISTORY

Roll your Own ASP.NET Membership

ASP.NET Identity

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

DESIGN GOALS

One ASP.NET

Improved Persistence

Improved User Profiles

OWIN integration

Social Login Azure Active Directory

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

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

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

DEMOFILE; NEW PROJECT;

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

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.

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

DEMOSOCIAL LOGIN

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

PROFILE DATA1. Enable-Migrations

2. Add properties to ApplicationUser class

3. Update Database schema

4. Capture from User Interface

5. Persist

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

DEMOUSER PROFILE

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

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

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

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

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

@smithderekm

www.codeovereasy.com

DEREK SMITH

DSMITH-14 for free trial