I am currently using federated authentication through openid in appengine - using google, yahoo, myopenid as providers
The question was what should I store in my db in order to identify returning users. I currently store user.getNickname () - (for google and yahoo this returns the users email address).
User user = userService.getCurrentUser();
String username = user.getNickname();
I use this to store and retrieve user data.
Is it correct? Is getNickName () unique? I see that the user also has a user.getUserId () method and a user.getEmailId () method.
Should I use user.getUserId () instead?
source
share