I am developing a website that uses Facebook. Now for managing users I thought of using MembershipProvider
and chose to develop a custom membership provider. My problem is that my database schema doesn't match the standard membership schema and the functions provided to override take different arguments than I expect. For example, membership uses username as a username to log in. But I have to use user email ID as the username. Also its searching functions are based on using username as a way to search but I want it to search by UserID. Same Goes for User insertion, deletion, modification.
While adding new user I also want to save user's facebook related data... like UID and access token.
Edit
Its just an idea, would it be feasible to forcefully pass my values in the arguments and then handle them in my code?
Update
I found that there is a object providerUserKey
argument in the Create user method. In the MSDN documentation I found that it is used to pass a unique key like a GUID for each new row. But in my db I already have provisions for UID of new row. So should I use this extra parameter to pass my Custom data as object through this argument and handle it there in my custom provider code.