Asp.net Memebership授权没有密码 [英] Asp.net Memebership Authorization without password
问题描述
要authanticate用户Asp.net会员,我们可以调用方法
To authanticate users in Asp.net Membership we can call method
FormsAuthentication.Authenticate(username, password)
我该怎么做同样的工作(生成会话cookie和其他所有工作人员Authanticate一样)无用户密码?
how can I do the same job (generate session, cookies and all other staff that Authanticate does) without users password?
我试图登录用户在Facebook的连接。用户的Facebook ID被存储在用户的数据之内。用户应该像一个普通用户进行登录。
I'm trying to login user over facebook connect. User's facebook id is stored within the users data. User should be signed in like a normal user.
推荐答案
我想你可以使用SetAuthCookie方法。
I think you can use the SetAuthCookie method.
更多信息<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie.aspx\">http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie.aspx
这篇关于Asp.net Memebership授权没有密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!