Google is deprecating Google Plus and related APIs.
They recommend a simple migration, replacing the older deprecated scopes with new ones:
plus.login->profileplus.me->openidplus.profile.emails.read->emailuserinfo.profile->profileuserinfo.email->email
Performing OAuth (using the code flow) with the new scopes works as expected. However, when calling the tokeninfo API the scopes are returned as their previous deprecated versions:
{
'scope': 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me'
}
Is this a problem specific to the tokeninfo API? Or is this by design, and these are the scopes that will be returned - as they are to be maintained alive, even though they're deprecated?
Both
https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
will be valid scopes going forward and are synonyms of 'email' and 'profile' (note, there's no reference to plus).
We are in the process of making changes to token info such that openid will be returned instead of https://www.googleapis.com/auth/plus.me