Difference between FormsAuthentication Microst.AspNet.Identity.Owin.SignInManager.to authenticate

前端 未结 3 1821
-上瘾入骨i
-上瘾入骨i 2021-02-04 10:02

The default Project template of ASP.NET MVC comes with a class named Microst.AspNet.Identity.Owin.SignInManager. This class is used to authenticate users

I dont understa

3条回答
  •  死守一世寂寞
    2021-02-04 10:53

    MembershipProvider came with FormsAuthentication in ASP.NET 2.

    ASP.NET Identity came with SignInManager in ASP.NET 5.

    ASP.NET Identity is a new version of MembershipProvider. It offers a lot more features than legacy MembershipProvider.

    For example,

    • Two-factor authentication
    • Token-based authentication
    • Easy-to-add custom properties compare to MembershipProvider
    • Get instance of UserManager from the OWIN context

    If you do not need all those features, you can stick with FormsAuthentication which can be used without MembershipProvider.

提交回复
热议问题