Comments (10)
Hello guys, I think the problem is here:
Actual code:
File: backend/app/services/auth/index.js
line 9 and 11
var isAuthorized = domainAuthorization(getAllowedDomains());
isAuthorized = userAuthorization(getAllowedUsers());
This var isAuthorized is replacing the second var.
Should be:
var isAuthorized = domainAuthorization(getAllowedDomains());
if (!isAuthorized) {
isAuthorized = userAuthorization(getAllowedUsers());
}
After test this code work for me.
from matrix.
This same problem is happening to me too!
from matrix.
Hi, could you share your whitelisted configuration?
from matrix.
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.
from matrix.
My config is the same as yours.
from matrix.
Try to regenerate Sign-In client-id, and restart application.
I had this problem a while ago.
In that time, I thought that google changed the authentication method. After I regenerate, it worked perfectly.
from matrix.
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.
from matrix.
This same problem is happening to me too.
my configuration:
WHITELIST_DOMAINS=["buy4.com.br"]
from matrix.
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
from 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]"]
from matrix.
Related Issues (20)
- Acessible Components in React HOT 1
- Google meets as an internal conference option HOT 4
- Persist desktop notifications on/off preference
- Add room groups HOT 1
- Add an image in the Room's headers.
- Entering an external meeting without leaving the previous one makes you leave both when one is closed.
- Add a language switch HOT 2
- User and room search should ignore accents.
- Rename ExpansionPanel HOT 2
- Magic number HOT 1
- Less colors saturated HOT 1
- The logo of the matrix was without the alt attribute. HOT 1
- Trophy Room
- not starting HOT 1
- SECURITY.md HOT 1
- Language switch problem (Problema na troca de idioma) HOT 3
- Someone with bad intentions managing to change room names
- Microfone and video doesn't work HOT 1
- missing script: start-backend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix.