Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net Memebership Authorization without password

To authanticate users in Asp.net Membership we can call method

FormsAuthentication.Authenticate(username, password)

how can I do the same job (generate session, cookies and all other staff that Authanticate does) without users password?

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.

like image 592
Ante Avatar asked Dec 09 '09 01:12

Ante


1 Answers

I think you can use the SetAuthCookie method.

more info here http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie.aspx

like image 150
John Boker Avatar answered Oct 01 '22 03:10

John Boker