How to allow multiple authentication methods in ASP.NET?

前端 未结 3 1818
甜味超标
甜味超标 2020-12-23 12:11

I\'m building a new ASP.NET MVC application (in C#) and one of the requirements is to create a new database of members. For this, we\'d need roles to manage the different ty

3条回答
  •  不知归路
    2020-12-23 12:26

    Use standard framework stuff. See http://blogs.teamb.com/craigstuntz/2009/09/09/38390/

    You can have an unlimited number of authentication methods attached to one account, the magic is in the FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); statement

提交回复
热议问题