Today, we are releasing a preview ASP.NET Identity 2.1.0-alpha1. The main focus in this release was to fix bugs and add SignInManager to make it easier to use security features for login.
Download this release
You can download ASP.NET Identity from the NuGet gallery. You can install or update to these packages through NuGet using the NuGet Package Manager Console, like this:
- Install-Package Microsoft.AspNet.Identity.EntityFramework–Version 2.1.0-alpha1 –Pre
- Install-Package Microsoft.AspNet.Identity.Core -Version 2.1.0-alpha1 –Pre
- Install-Package Microsoft.AspNet.Identity.OWIN -Version 2.1.0-alpha1 –Pre
- The following is a samples only package and should be installed in an Empty ASP.NET Web Application
- Install-Package Microsoft.AspNet.Identity.Samples -Version 2.1.0-alpha1 –Pre
What’s in this release?
Following is the list of features and major issues that were fixed in 2.1.0-alpha1.
SignInManager
SignInManager makes it easier to add Two-Factor authentication, account lockout and other security features when you login. Earlier in your application code you had to keep track of how many times had the user incorrectly attempted a login and update the count to track whether the account should be locked out or not. The same logic will used when entering the verification code when doing two-factor authentication. If you incorrectly enter the code then your account will be locked out for some time. All these values for account lockout are configurable.
In the samples package that we had for 2.0 the SignInManager was in the application code and now we have moved it into the Framework.
The following tutorials cover account confirmation and two-factor authentication (including account lockout)
Following screenshot show the login code of an application which uses two-factor authentication and account lockout.
List of bugs fixed
You can look at all the bugs that were fixed in this release by clicking here.
Samples/ Documentation
- We have lots of samples for Identity at https://aspnet.codeplex.com. Please look for the Identity folder in the source. https://aspnet.codeplex.com/SourceControl/latest
- Web Forms sample which shows Two-Factor Authentication and other 2.0 features http://aspnet.codeplex.com/SourceControl/latest#Samples/Identity/Webforms.Samples/Webforms.Samples/
- For documentation on ASP.NET Identity please visit http://www.asp.net/identity.
- http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity
- http://www.asp.net/identity/overview/features-api/two-factor-authentication-using-sms-and-email-with-aspnet-identity
Migrating from ASP.NET Identity 2.0.0
This is a compatible release with 2.0.0 and there are no schema updates so you should be able to update to this version without anything being broken.
Give feedback and get support
- If you find any bugs please open them at our Codeplex Site where we track all our bugs https://aspnetidentity.codeplex.com/
- If you want to discuss these features or have questions, please discuss them on Stack Overflow and use the following tag “asp.net-identity”
Thank You for trying out the preview and your feedback for ASP.NET Identity. Please let us know your feedback around ASP.NET Identity