12
DEVintersection Session AS11 Bring Your Own Authentication to MVC Shayne Boyer [email protected] @spboyer / tattoocoder.com

Bring your own authentication to mvc

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Bring your own authentication to mvc

DEVintersectionSession AS11

Bring Your Own Authentication to MVCShayne Boyer

[email protected]@spboyer / tattoocoder.com

Page 2: Bring your own authentication to mvc

2© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Overview

Introduction Quick Survey Login Screens

History Social Media Saves Us…right? oAuth / OpenID

Then & Now Demo Final Comments & Questions

Page 3: Bring your own authentication to mvc

3© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Quick Survey

Who Likes Coding Login Pages? User / Profile Management? oAuth?

Page 4: Bring your own authentication to mvc

4© DEVintersection. All rights reserved.

http://www.DEVintersection.com

The Login Screen

My Awesome Websitehttp://www.myawesomewebsite.com/login

username

password

Login

home

login …………

Page 5: Bring your own authentication to mvc

5© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Social Media To The RescueMy Work Here is Done!

Page 6: Bring your own authentication to mvc

6© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Social LoginsEverybody’s Doing It!

Page 7: Bring your own authentication to mvc

7© DEVintersection. All rights reserved.

http://www.DEVintersection.com

oAuth / OpenIDusing DotNetOpenAuth

http://dotnetopenauth.net Wrapped oAuth implementation nuget package Added in MVC 4.0

Page 8: Bring your own authentication to mvc

8© DEVintersection. All rights reserved.

http://www.DEVintersection.com

MVC 5ASP.NET Identity

OWIN / Katana Microsoft.Owin.Security.* ships w/ Visual Studio 2013 Middleware / Authentication

Page 9: Bring your own authentication to mvc

Demo

Social Login ImplementationBring It!

Page 10: Bring your own authentication to mvc

10© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Final Comments

ASP.NET Identity in MVC 5 is easy! Leverage Social Logins Where Appropriate Add additional data tables to expand user information SDKs allow for getting additional user information

Good & Bad – data can get out of sync

Page 11: Bring your own authentication to mvc

11© DEVintersection. All rights reserved.

http://www.DEVintersection.com

Resource & Links

Get More from Facebook User / Using Facebook C# SDK http://blogs.msdn.com/b/webdev/archive/2013/10/16/get-more-information-from-social-providers-used-in-the-vs-2013-project-templates.aspx

OWIN and Katana Projecthttp://www.asp.net/aspnet/overview/owin-and-katana

Contact Information Twitter: @spboyer Blog: http://www.tattoocoder.com

Page 12: Bring your own authentication to mvc

Questions?

Thank you!

Don’t forget to enter your evaluation of this session using EventBoard!