bring your own authentication to mvc
DESCRIPTION
TRANSCRIPT
![Page 1: Bring your own authentication to mvc](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/1.jpg)
DEVintersectionSession AS11
Bring Your Own Authentication to MVCShayne Boyer
[email protected]@spboyer / tattoocoder.com
![Page 2: Bring your own authentication to mvc](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/6.jpg)
6© DEVintersection. All rights reserved.
http://www.DEVintersection.com
Social LoginsEverybody’s Doing It!
![Page 7: Bring your own authentication to mvc](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/9.jpg)
Demo
Social Login ImplementationBring It!
![Page 10: Bring your own authentication to mvc](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/10.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/11.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062510/54b5b8924a79596e0a8b469c/html5/thumbnails/12.jpg)
Questions?
Thank you!
Don’t forget to enter your evaluation of this session using EventBoard!