Richard
Richard

Reputation: 16812

What is the difference between normal MVC and Azure MVC forms authentication systems?

I see in Visual Studio 2013 when creating a default MVC application and creating a Windows Azure cloud service MVC application that the Forms authentication tables differ:

Normal MVC:

Azure MVC:

Questions:

Even the code for AccountController.Register() differs:

Normal MVC:

WebSecurity.CreateUserAndAccount(model.UserName, model.Password);
WebSecurity.Login(model.UserName, model.Password);

Azure MVC:

var user = new ApplicationUser() { UserName = model.UserName };
var result = await UserManager.CreateAsync(user, model.Password);

Upvotes: 0

Views: 404

Answers (1)

Richard
Richard

Reputation: 16812

The Azure way is called ASP.NET Identity and is MVC 5. The old way is called ASP.NET membership.

The new way is more powerful.

Resources are here: http://www.asp.net/identity/overview/getting-started/aspnet-identity-recommended-resources

Upvotes: 1

Related Questions