ResultadosDigitais / matrix

#matrix is the online open-source workplace inspired in sococo.com for distributed teams to have the experience of work together each day, side-by-side. No matter where team members might be. Working in an online workplace is even more productive when people are feeling in the same space.
MIT License
901 stars 238 forks source link

User list restriction #313

Closed Jarzamendia closed 4 years ago

Jarzamendia commented 4 years ago

Description

Add a new form of authorization for #Matrix.

Motivation

Today we can define which domain can log into our environment. However, in some cases, we will use emails from the domain @ gmail.com and still, we will need to limit which users can participate in our environment.

How to test?

Create the "USER_LIST" ENV with a array of users e-mails. Ex.:["user@domain1.com","user@domain2.com"], and try to login with one of this google accounts.

Expected behavior

If the user's e-mail is listed in the array, the login will work propely. Else, the user will get a bad domain error.

Jarzamendia commented 4 years ago

It's seens that the develop branch is years ahead my commit (my bad). I'll close this PR and work in a better approuch!