Can not get user domain with version 2.0
jehy opened this issue · comments
"Domain" property of user profile is unavailable after updating to 2.0, had to revert to 1.
Can you please provide more information? There has never been a domain
property of a normalized user profile. Is the property on the _raw
profile? If so, the fields returned are directly from Google's APIs and not under the control of this strategy.
It was a profile._json.domain
property. Can't we have it in normalized profile? I think that it's a very generic case when you need to authorize users only from certain domains.
I suspect this relates to authenticating using Google+ for enterprise organization who use G Suite. Support for this is still available, by setting the userProfileURL
options. If you have an suggestions for how to make this support more seamless, I'd be interested.
@jehy It is still there, it is just profile._json.hd
now instead of profile._json.domain
.. Just had the same issue when upgrading... not sure what options we have with the userProfileURL
but just flip to the new property and you will be good