I am a newbie in openID. I spend a lot of time thinking what the best-practices are to give the user the choice, to login with various OpenID enabled accounts.
(I have
have a table in your database with the user accounts, which includes a user id and have a link table, that links an OpenID to an user id.
like
table users
ID NAME
1 PIET
2 KEES
and
table openid
OPENID USERID
http://..... 1
http://..... 1
http://..... 2
http://..... 2
It seems like you'd have to get the user to log in with both to connect them together.
OpenID is an authentication mechanism, not a profile storage mechanism. You should still have a unique identifier for the person on your site, and should maintain a record which stores the OpenID in relation to that unique identifier in the same way you would store a password related to that unique identifier.
Yes, the user will have to login with both.
Also, anytime when user wishes he can choose to add logins to his profile and identify his/her other openIDs like Blogger, Facebook etc. If he has created different logins (in grombeestje's table user) with these accounts then he can either drop one of the local logins (in grombeestje's table user) with the app or merge them into one.