I have an ASP.Net MVC web application using forms authentication. I am using OpenID for authentication.
At the moment the moment I'm storing the openID url inside the Name
of the standard GenericIdentity
. I would also like to have easy access to the database id for the user.
I can make a custom provider or identity by overriding the Application_AuthenticateRequest
function.
My question is should the database uid for the user go into the principal or the identity?
Should the Name property of the Identity be the openid url (a user can have many of these but I would like to display it on every page) or database uid?