You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
The problem I faced is that when a token is generated based on plus.me and that token is given to google via our server. The token does not return user email address:
/**
* Register Google Implicit OAuth.
* If overrides is left empty, the default scope is limited to basic profile information.
*
* @param {string} clientId ClientID for the Google App.
* @param {object} config Valid Endpoint configuration to override the defaults.
* @return {object} Returns the added endpoint.
*/
EndpointStorage.prototype.registerGoogleAuth = function (clientId, overrides) {
var defaults = {
clientId: clientId,
baseUrl: 'https://accounts.google.com',
authorizeUrl: '/o/oauth2/v2/auth',
resource: 'https://www.googleapis.com',
responseType: 'token',
scope: 'https://www.googleapis.com/auth/plus.profile.emails.read',
**// scope: 'https://www.googleapis.com/auth/plus.me',**
state: true
};
var config = __assign({}, defaults, overrides);
return this.add(DefaultEndpoints.Google, config);
};
I changed plus.me to plus.profile.emails.read and I could get user's email address. Why this scope is set and is there any chance to change this scope to plus.profile.emails.read?
The text was updated successfully, but these errors were encountered:
alirezastack
changed the title
plus.me scope does not return does not return email of userplus.me scope does not return email of user
Dec 30, 2018
Could you clarify if this is Office-js-helpers related? When you say you couldn't get the email address back, can you specify where you are unable to receive?
@sumurthy yes it is related to office.js helpers. I have provided the code from office library and based on the scope in office-js helpers it gives a token that return insufficient account information.
For now I use the below scope to get user email address and name:
The problem I faced is that when a token is generated based on
plus.me
and that token is given to google via our server. The token does not return user email address:I changed
plus.me
toplus.profile.emails.read
and I could get user's email address. Why this scope is set and is there any chance to change this scope toplus.profile.emails.read
?The text was updated successfully, but these errors were encountered: