3. Who I am
• Microsoft MVP ASP.NET since 2014
• Founder of SmartCore Tech
• DotNetToscana Staff Member & Speaker
• Speaker for various events
• Trainer
• SharePoint addicted from 2007
• Enthusiast ASP.NET Developer
• NopCommerce Contributor
• MCPD Web applications, MCTS BING Applications, MCTS Silverlight, MCTS HTML5 & CSS3
• Italian blog: www.emanuelebartolesi.com
• English blog: www.geekswithblogs.net/emanueleb/
• Twitter enthusiast: @kasuken
• Email: emanueleb@outlook.com
4. Agenda
Introduzione
Uno sguardo al passato
Migrare da Membership
Principali caratteristiche di ASP.NET Identity
Rilasci
Demo
Provider MySQL
Strumenti
Riferimenti
5. Uno sguardo al passato
ASP.NET 1.1
• N/A
ASP.NET 2.0
• Membership Provider
ASP.NET 4.0
• Simple Membership
ASP.NET 4.5
• Universal Providers
One ASP.NET
• ASP.NET Identity
6. Migrare dal passato
http://www.asp.net/identity/overview/migrations
• Migrare da SQL Membership a ASP.NET Identity
• Migrare Universal Provider Data for Membership a
ASP.NET Identity
7. Principali caratteristiche
• Può essere utilizzato con tutti i framework ASP.NET, quindi: MVC, Web Forms, Web API e SignalR
• Può essere anche utilizzato in applicazioni non web, come app per windows phone o windows 8
• E’ facile aggiungere proprietà alle informazioni di profilo utente
• Utilizza Entity Framework Code First e quindi è molto semplice aggiungere proprietà ed
aggiornare il database
• E’ possibile modificare lo schema del database
• E’ molto semplice implementare un nuovo storage dei dati come SharePoint, database NoSQL o
altro
• E’ facile gestire i ruoli all’interno dell’applicazione e in fase di creazione dei ruoli stessi
• E’ basato sui Claims, quindi è molto facile arricchire e utilizzare informazioni legate all’utente in
qualsiasi momento
• Essendo basato su OWIN, non è necessaria la dipendenza da System.Web
• Rilasciato con NuGet
8. Rilasci
• ASP.NET Identity 1.0 – Visual Studio 2013
• ASP.NET Identity 2.0 – Visual Studio 2013 Update 2
• ASP.NET Identity 2.1 – Visual Studio 2013 Update 3
12. Riferimenti
• http://www.asp.net/identity/
• http://www.asp.net/identity/overview/getting-started/aspnet-identity-
recommended-resources
• Migrating to ASP.NET Identity
• http://www.asp.net/identity/overview/features-api/two-factor-authentication-
using-sms-and-email-with-aspnet-identity
• 2FA using Google Authenticator app
• Web Admin using Thinktecture IdentityManager
• For samples for Identity in general
https://aspnet.codeplex.com/SourceControl/latest#Samples/Ide
ntity/
• Raven Db ASP.NET Identity provider by Tugberk
• ASP.NET Identity providers
13. Prossimi eventi
Corso Bootstrap giovedì 18/09 a Milano
https://www.eventbrite.it/e/biglietti-corso-bootstrap-3-
12580270929
Evento DotNetToscana
ABC… Azure Best Contents – giovedì 9 ottobre Firenze -
http://www.dotnettoscana.org/abc-azure-best-contents.aspx