Openid with appengine

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?

+3
source share
1 answer
  • getNickname() - do not use it.

  • getUserId() - , , , ( Google, yahoo facebook). . . , Google, .

  • 'getEmail() `- ID - . CAN , .

, , " " (, SO). , .

+4

Source: https://habr.com/ru/post/1796667/


All Articles