OAuth 2.0 Scope for Google Apps users' names with google-api-nodejs-client -


I use Google's 'google-api-nodejs-client' package () to manage OAuth 2.0 authentication I am trying to / P>

I have modified the entire profile object in example in console.log in example / oauth2.js .

How can I use the "name given" and "family name" to remove users correctly if they are authenticating using a Google Apps account? Using the following scope:

  Regions: ['https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/ Plus .profile.emails.read ']   

Once the authentication occurs, the following response gives:

  {type:' plus # person ', etag : '' Long '', '123456', displayName: '', name: {familyName: '', GivenName: ''}, image: {url: 'https://lh3.googleusercontent.com/ etc etc', Default is: wrong}, isPlusUser: wrong, language: 'en_GB', circledByCount: 0, verified: wrong, domain: 'example.example'}    

I have the API API Explorer () and only Parva Name and givenName to 'https://www.googleapis.com/auth/plus.login' / code>.

Perhaps the user from whom you are requesting data has no given and family safe AM set?

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -