views:

107

answers:

1

how to integration local user and openid(or facebook twitter) user ,

did you know some framework have already done this ,

thanks

alt text

updated

my mean is : how to deal with 'local user' and 'openid user',

and how to mix them in one model .

please give me a framework that realize 'local user' and 'openid user'

+1  A: 

I understand your question.

You wish to be able to maintain a list of users that have signed up with your service, and also want to record users using OpenID to authenticate.

In order to solve this I would do either of the following:

  • Create a new user in your users table for each new user logged in under OpenID, and store their OpenID in this table to allow you to join the two.
  • Move your site to OpenID and change all references to your current users to OpenID users.

I'd probably go with Option 1 if you already have this app in production.

Note: More experienced Open ID users will probably correct me!

James