ASP.NET IDENTITY
Non Intanon | nonintanon.com | non@mrnon.com
ZupZip #9 Skill Update v2

24 November 2013 ~ UTCC
AGENDA
 The History
 ASP.NET Identity
 OWIN

 Katana
 Live Demo 1 – Hello ASP.NET Identity
 Live Demo 2 – Let’s cons...
THE HISTORY
Membership 101
PREVIOUS MEMBERSHIP SYSTEMS
 ASP.NET Membership
 ASP.NET Simple Membership
 ASP.NET Universal Providers
ASP.NET MEMBERSHIP
 Design to solve common membership requirements in 2005
 Form Authentication + SQL Server database
 ...
ASP.NET SIMPLE MEMBERSHIP
 Developed as a membership system for ASP.NET Web Pages
 Shipped with Web Matrix and Visual St...
ASP.NET UNIVERSAL PROVIDERS
 Developed to make it possible to persist membership information in Windows
Azure SQL Databas...
ASP.NET IDENTITY
The Next Generation Membership System
ASP.NET IDENTITY
 One ASP.NET Identity System
 Ease of plugging in profile data about the user
 Persistence Control

 ...
ASP.NET IDENTITY
 Claims Based
 Social Login Providers
 Windows Azure Active Directory

 OWIN Integration
 NuGet Pack...
OWIN
Open Web Interface for .NET
OWIN
 Open Web Interface for .NET
 Defines a standard interface between .NET web servers and web applications
 Goal
 T...
OWIN – WTH?
 OWIN is NOT technology
 OWIN is a simple specification that describes how components in a HTTP pipeline
sho...
OWIN – SERVER & HOSTS
 Katana

https://katanaproject.codeplex.com

 Nowin

https://github.com/Bobris/Nowin
OWIN - FRAMEWORKS
 Nancy

http://nancyfx.com

 SignalR

http://signalr.net

 WebApi

https://aspnetwebstack.codeplex.co...
KATANA
OWIN Implementations for Microsoft servers and frameworks
KATANA PROJECT
 Samurai Sword
 OWIN implementations for Microsoft servers and frameworks
 Set of Components for buildin...
KATANA ARCHITECTURE
LIVE DEMO 1
Hello ASP.NET Identity
LIVE DEMO 2
Let’s consume the API
LIVE DEMO 3
Write your own OWIN middleware
LUCKY DRAW !!
THANK YOU
3 Times
ZubZib Black Coffee #9 - ASP.NET Identity
Upcoming SlideShare
Loading in...5
×

ZubZib Black Coffee #9 - ASP.NET Identity

4,468

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,468
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

ZubZib Black Coffee #9 - ASP.NET Identity

  1. 1. ASP.NET IDENTITY Non Intanon | nonintanon.com | non@mrnon.com ZupZip #9 Skill Update v2 24 November 2013 ~ UTCC
  2. 2. AGENDA  The History  ASP.NET Identity  OWIN  Katana  Live Demo 1 – Hello ASP.NET Identity  Live Demo 2 – Let’s consume the API  Live Demo 3 – Write your own OWIN middleware  Lucky Draw!
  3. 3. THE HISTORY Membership 101
  4. 4. PREVIOUS MEMBERSHIP SYSTEMS  ASP.NET Membership  ASP.NET Simple Membership  ASP.NET Universal Providers
  5. 5. ASP.NET MEMBERSHIP  Design to solve common membership requirements in 2005  Form Authentication + SQL Server database  Limitations     Database schema was designed for SQL Server – CANNOT CHANGE Profile Provider API is too complicated Provider system allow to change backing data store, but only Relational Database Form Authentication won’t work nicely with OWIN
  6. 6. ASP.NET SIMPLE MEMBERSHIP  Developed as a membership system for ASP.NET Web Pages  Shipped with Web Matrix and Visual Studio 2010 SP1  Limitations  Hard to persist membership system data in a non-relational store  No OWIN  Doesn’t work well with existing ASP.NET Membership providers. Not extensible.
  7. 7. ASP.NET UNIVERSAL PROVIDERS  Developed to make it possible to persist membership information in Windows Azure SQL Database (work with SQL Server Compact too)  Built on Entity Framework Code First, which means it can be used to persist data in any store supported by EF.  Database schema cleaned up a lot  Still built on ASP.NET Membership infrastructure hence same limitations  Still using Form Authentication for log-in and log-out
  8. 8. ASP.NET IDENTITY The Next Generation Membership System
  9. 9. ASP.NET IDENTITY  One ASP.NET Identity System  Ease of plugging in profile data about the user  Persistence Control  Unit Testability  Role Provider
  10. 10. ASP.NET IDENTITY  Claims Based  Social Login Providers  Windows Azure Active Directory  OWIN Integration  NuGet Package
  11. 11. OWIN Open Web Interface for .NET
  12. 12. OWIN  Open Web Interface for .NET  Defines a standard interface between .NET web servers and web applications  Goal  To decouple server and application  Open source ecosystem of .NET web development tools  Official website http://owin.org  Source code http://github.com/owin/owin  Specification (OWIN v1.0.0) http://owin.org/spec/owin-1.0.0.html
  13. 13. OWIN – WTH?  OWIN is NOT technology  OWIN is a simple specification that describes how components in a HTTP pipeline should communicate  What is in the communication between components is specific to each component  OWIN is a community-owned specification, not an implementation  Inspired by the benefits achieved by Rack () in the Ruby community  New components could be more easily developed and consumed  Applications could be more easily ported between hosts and potentially entire platforms/operating systems
  14. 14. OWIN – SERVER & HOSTS  Katana https://katanaproject.codeplex.com  Nowin https://github.com/Bobris/Nowin
  15. 15. OWIN - FRAMEWORKS  Nancy http://nancyfx.com  SignalR http://signalr.net  WebApi https://aspnetwebstack.codeplex.com  FubuMVC http://mvc.fubu-project.com  Simple.Web https://github.com/markrendle/Simple.Web  DuoVia.Http https://github.com/duovia/duovia-http
  16. 16. KATANA OWIN Implementations for Microsoft servers and frameworks
  17. 17. KATANA PROJECT  Samurai Sword  OWIN implementations for Microsoft servers and frameworks  Set of Components for building and hosting OWIN-based web applications  Set of open-source OWIN components developed by Microsoft  Office Website https://katanaproject.codeplex.com
  18. 18. KATANA ARCHITECTURE
  19. 19. LIVE DEMO 1 Hello ASP.NET Identity
  20. 20. LIVE DEMO 2 Let’s consume the API
  21. 21. LIVE DEMO 3 Write your own OWIN middleware
  22. 22. LUCKY DRAW !!
  23. 23. THANK YOU 3 Times
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×