Eduardo Pires 
Arquiteto de Sistemas – MCT – MCSD – MCPD 
Globalcode – Open4education 
www.eduardopires.net.br 
@EduardoPiresBR
Globalcode – Open4education
Globalcode – Open4education 
Evolução do Membership 
até o ASP.NET Identity 
ASP.NET 2.0 
Membership 
Provider 
ASP.NET 1.1 N/A 
ASP.NET 4/4.5 
Universal Providers 
ASP.NET 4 
Simple Membership 
ASP.NET 4.5 
One ASP.NET 
Identity 
Migração? Verifique como: www.asp.net/identity/overview/migrations
Globalcode – Open4education 
ASP.NET Identity (V1.0) 
• Lançado com o ASP.NET MVC 5 
• Parte do ONE ASP.NET 
• Customização do perfil do usuário simplificado (escrito em Code First) 
• Controle de persistência de dados (EF ou outros) 
• Totalmente testável (Unity Tests) 
• Role Provider (separação de acessos por perfil) 
• Claims Based (lindo) 
• Autenticação com redes sociais (FB, Twitter, Google+ e Microsoft Accounts) 
• Integraçao com Active Directory (On-Premisses e Azure) 
• Integração com OWIN (OWIN Middleware based) 
• Entregue via NuGet (Nuget Everywhere) 
• Facilmente Extensível
Globalcode – Open4education 
ASP.NET Identity – Storage 
• MySQL 
• CodeFluent Entities 
• Azure Table Storage 
• CouchDB 
• Elastic Identity 
• MongoDB 
• Nhibernate 
• RavenDB 
• Redis 
http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity#other
Globalcode – Open4education 
ASP.NET Identity 
• Indentidade != Autenticação 
• Assíncrono 
• Desacoplado 
• Claims > Roles (no vNext isso melhorou) 
• Autenticar não apenas ASP.NET MVC 
• Open Source!
Globalcode – Open4education 
ASP.NET Identity
Globalcode – Open4education 
ASP.NET Identity (V2.1) 
• Two Factor Authentication 
• Account Lockout 
• Account Confirmation 
• Password Reset 
• Security Stamp (Sign out everywhere) 
• Primary Key extensible for Users and Roles 
• Support IQueryable on Users and Roles 
• Delete User account 
• IdentityFactory Middleware – CreatePerOwinContext (UserManager, DbContext) 
• Enhanced Password Validator 
• SignInManager (V2.1 – Facilidade para aplicar features [Two Factor, account lockout, etc]) 
• *** ASP.NET Identity 2 disponível no template ASP.NET MVC no VS2013 Update 2
Globalcode – Open4education 
ASP.NET Identity (V2.1)
Globalcode – Open4education 
Talk is cheap! 
Show me the CODE…
Globalcode – Open4education 
ASP.NET Identity 
http://www.asp.net/identity/overview/getting-started 
http://www.asp.net/identity/overview/getting-started/aspnet-identity-recommended-resources 
http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google- 
oauth2-and-openid-sign-on 
http://blogs.msdn.com/b/webdev/archive/2014/03/20/test-announcing-rtm-of-asp-net-identity- 
2-0-0.aspx 
http://blogs.msdn.com/b/webdev/archive/2014/08/05/announcing-rtm-of-asp-net-identity- 
2-1-0.aspx 
http://www.asp.net/identity/overview/features-api 
http://www.asp.net/identity/overview/extensibility 
http://www.asp.net/identity/overview/migrations 
http://www.asp.net/identity/overview/additional-resources
Globalcode – Open4education 
Muito Obrigado!!! 
Dúvidas? 
Eduardo Pires 
www.eduardopires.net.br 
@EduardoPiresBR

ASP.NET Identity - O Novo componente de Membership do ASP.NET

  • 1.
    Eduardo Pires Arquitetode Sistemas – MCT – MCSD – MCPD Globalcode – Open4education www.eduardopires.net.br @EduardoPiresBR
  • 2.
  • 3.
    Globalcode – Open4education Evolução do Membership até o ASP.NET Identity ASP.NET 2.0 Membership Provider ASP.NET 1.1 N/A ASP.NET 4/4.5 Universal Providers ASP.NET 4 Simple Membership ASP.NET 4.5 One ASP.NET Identity Migração? Verifique como: www.asp.net/identity/overview/migrations
  • 4.
    Globalcode – Open4education ASP.NET Identity (V1.0) • Lançado com o ASP.NET MVC 5 • Parte do ONE ASP.NET • Customização do perfil do usuário simplificado (escrito em Code First) • Controle de persistência de dados (EF ou outros) • Totalmente testável (Unity Tests) • Role Provider (separação de acessos por perfil) • Claims Based (lindo) • Autenticação com redes sociais (FB, Twitter, Google+ e Microsoft Accounts) • Integraçao com Active Directory (On-Premisses e Azure) • Integração com OWIN (OWIN Middleware based) • Entregue via NuGet (Nuget Everywhere) • Facilmente Extensível
  • 5.
    Globalcode – Open4education ASP.NET Identity – Storage • MySQL • CodeFluent Entities • Azure Table Storage • CouchDB • Elastic Identity • MongoDB • Nhibernate • RavenDB • Redis http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity#other
  • 6.
    Globalcode – Open4education ASP.NET Identity • Indentidade != Autenticação • Assíncrono • Desacoplado • Claims > Roles (no vNext isso melhorou) • Autenticar não apenas ASP.NET MVC • Open Source!
  • 7.
  • 8.
    Globalcode – Open4education ASP.NET Identity (V2.1) • Two Factor Authentication • Account Lockout • Account Confirmation • Password Reset • Security Stamp (Sign out everywhere) • Primary Key extensible for Users and Roles • Support IQueryable on Users and Roles • Delete User account • IdentityFactory Middleware – CreatePerOwinContext (UserManager, DbContext) • Enhanced Password Validator • SignInManager (V2.1 – Facilidade para aplicar features [Two Factor, account lockout, etc]) • *** ASP.NET Identity 2 disponível no template ASP.NET MVC no VS2013 Update 2
  • 9.
    Globalcode – Open4education ASP.NET Identity (V2.1)
  • 10.
    Globalcode – Open4education Talk is cheap! Show me the CODE…
  • 11.
    Globalcode – Open4education ASP.NET Identity http://www.asp.net/identity/overview/getting-started http://www.asp.net/identity/overview/getting-started/aspnet-identity-recommended-resources http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google- oauth2-and-openid-sign-on http://blogs.msdn.com/b/webdev/archive/2014/03/20/test-announcing-rtm-of-asp-net-identity- 2-0-0.aspx http://blogs.msdn.com/b/webdev/archive/2014/08/05/announcing-rtm-of-asp-net-identity- 2-1-0.aspx http://www.asp.net/identity/overview/features-api http://www.asp.net/identity/overview/extensibility http://www.asp.net/identity/overview/migrations http://www.asp.net/identity/overview/additional-resources
  • 12.
    Globalcode – Open4education Muito Obrigado!!! Dúvidas? Eduardo Pires www.eduardopires.net.br @EduardoPiresBR

Editor's Notes

  • #4 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #5 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #6 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #7 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #8 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #9 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #10 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #11 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure
  • #12 ASP.NET 2.0 Membership (VS 2005) Autenticação em Forms Baseado no Sql Server ASP.NET Simple Membership (VS 2010) Fácil customizer o perfil ASP.NET Web Pages ASP.NET Universal Providers(VS 2012) Suporte ao Sql Azure