I need to ask a very quick question. You know, in many cases, on a thirdparty custom built site, we have to use foreign keys to associate different types of information with user. For example, in a blog application, we associate UserID with Post records.
My question is How do we get a UserID if authentication is done using OpenID?.
I am new to Single Sign On solutions so I want to think in the right direction. Your response will really really be appreciated.
You can’t get a numeric id. The user’s unique identifier is his identity url (i.e. his OpenID). Of course, you can associate it with a number in your database, but you have to generate that number yourself.