Besides adding new APIs, user index in Servlets has been changed from userId to email. The reason is Google Cloud Endpoints is using ID tokens for Android, while ID tokens don't include user ID, so getUserId() always returns null from the authenticated User objects. See Function User.getUserId() in Cloud endpoint api returns null.
In order to consistently track registered through Android apps (using Endpoints APIs) and web based requests, we change all user index from original userId to email.
Hi @leshi, please review this change!
151
Endpoints APIs include:
Besides adding new APIs, user index in Servlets has been changed from userId to email. The reason is Google Cloud Endpoints is using ID tokens for Android, while ID tokens don't include user ID, so getUserId() always returns null from the authenticated User objects. See Function User.getUserId() in Cloud endpoint api returns null.
In order to consistently track registered through Android apps (using Endpoints APIs) and web based requests, we change all user index from original userId to email.