Answer the question
In order to leave comments, you need to log in
ASP.NET Identity, what is it?
Hello!!!
Do I understand correctly that ASP.NET Identity is just an add-on to the Claims-Based Identity Model? I just don’t understand why this monster is needed, imposing its architecture for building an application, when, as a result, authorization by cookies is done by the usual
List<Claim> claims = new List<Claim>();
claims.Add(new Claim(ClaimTypes.Name, "Ваня"));
claims.Add(new Claim(ClaimTypes.Email, "[email protected]"));
claims.Add(new Claim(ClaimTypes.Role, "Administrator"));
ClaimsIdentity id = new ClaimsIdentity(claims, "CookieAuthentication");
Request.GetOwinContext().Authentication.SignIn(id);
Answer the question
In order to leave comments, you need to log in
This is the Identity Management layer. It relies on the Claim-Based Identity Model and solves the tasks of managing the life cycle of an account, such as resetting passwords, verifying mail, and so on. With Owin, it is only integrated into the IAuthenticationManager part. But both can easily live without each other.
In general, a good reference for novice developers and for developers. where there is no complex specifics, but covers a fairly large layer of frequent tasks.
on a large project, everyone does this by hand. so I’ll say that using Identity + Owin would be 1000 times better: it works faster and more correctly, and there is support not from case to case and there are many more pluses ....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question