-
Notifications
You must be signed in to change notification settings - Fork 237
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
Whitelist domain doesn't work #368
Comments
This same problem is happening to me too! |
Hi, could you share your whitelisted configuration? |
Sure! Thank you! This is my configuration: WHITELIST_DOMAINS=["lageteck.com.br","lageteck.com"] Despite this, I can login with @gmail.com accounts. My OAuth2 configuration follows the settings above. |
My config is the same as yours. |
Try to regenerate Sign-In client-id, and restart application. |
Thanks for your help, @samuelrcarvalho! Unfortunately, I tried the procedure and it was still possible to connect with an account I shouldn't be able to. |
This same problem is happening to me too. my configuration: |
Because of another problem (issue #371), I switched the production environment from the master to another branch, and the problem reported here has also been solved. git clone https://github.com/ResultadosDigitais/matrix -b '#341-add-i18n' matrix |
Unfortunately my happiness did not last. Taking more careful tests, I came to the conclusion that the problem persists. I'm working around the problem with this: WHITELIST_USERS=["[email protected]","[email protected]"] |
Hello guys, I think the problem is here:
This var isAuthorized is replacing the second var. Should be:
After test this code work for me. |
Subject of the issue
Whitelist domain doesn't work
Steps to reproduce
Try to login with a domain that is not whitelisted.
Expected behaviour
Login should work just with the whitelisted domains
Actual behaviour
I can loggin on Matrix with any domain
The text was updated successfully, but these errors were encountered: