-
Notifications
You must be signed in to change notification settings - Fork 139
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
How to limit user login with google only on domains #44
Comments
This will definitely helps. Same issue here. |
This is a very important setting. I don't want any Google user to access my Nextcloud system. Only my Google users. Almost every social login out there has a feature like this ("allow only users from this domain"). I have no PHP experience. But looking at the HybridAuth documentation it seems to me this is already implemented in via the We just need a way to set this option now. 😉 |
I don't fully understand what means that |
You can try paste something like $config['authorize_url_parameters']['hd'] = 'https://ihavenoidea.com'; before this line for testing (I also don't know how to test it)
|
Thank you @zorn-v ! It worked flawlessly. 👍 Adding " Please add a configuration for this. It would be immensely helpful for many other out there with the same problem. |
Released in v1.11.0 |
If you log in with Google using the nextcloud android app (the official one), it is possible to use other domain. It's a bug and needs to be fixed. |
@Dgo27 I just tested the Android app adding two different accounts from two different Nextcloud instances:
And everything worked just fine. Using SocialLogin v1.11.0, Nextcloud v14.0.0, Android Nextcloud 3.3.0 Please try to upgrade everything to the latest version. If your problem persist, please open a new issue. |
About new setting - after turning off this option, I have not get a list of suggestions for selecting the input for user under which I am logged in. |
Check v1.11.1 |
Problem fixed, thanks! |
Hi, I'm using SocialLogin v1.11.2, Nextcloud v14.0.4, Android Nextcloud 3.3.2 (they're all updated up to the last version) As you can see on the attached pic, even if I've set a specific google domain, I can use other account domains without any problems. This is not true if I use an internet browser (no nextcloud app) Best regards |
After configuring the social login Google domain, I can still sign in via the web portal. |
Hello,
I have connect nextcloud with google+. Now, I want just user account in my domains mail ( google suite) access to Login?How do this?
Thanks you !
The text was updated successfully, but these errors were encountered: