Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get user domain with version 2.0 #139

Open
jehy opened this issue Mar 14, 2019 · 4 comments
Open

Can not get user domain with version 2.0 #139

jehy opened this issue Mar 14, 2019 · 4 comments

Comments

@jehy
Copy link

jehy commented Mar 14, 2019

"Domain" property of user profile is unavailable after updating to 2.0, had to revert to 1.

@jaredhanson
Copy link
Owner

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.

@jehy
Copy link
Author

jehy commented Mar 14, 2019

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.

@jaredhanson
Copy link
Owner

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.

@jpinkster
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants