ma1uta / ma1sd

Federated Matrix Identity Server (formerly fork of kamax/mxisd)
GNU Affero General Public License v3.0
167 stars 56 forks source link

Black- and Whitelist patterns are not useful #56

Open rebruCH opened 4 years ago

rebruCH commented 4 years ago

You should not use Pattern.compile when you did replace the pattern, which a user did define.

Please find a solution, so we can use the Pattern.compile functionality to setup more flexible solutions for white- and blacklisting, because at the moment, the blacklist is not applicable, if you want blacklist a whole toplevel as an example. And so on, you cant whitelist a whole country or whitelist everyone.

Please fill in a special char or a config variable, which indicates that we can use the pattern natively to Pattern.compile instead of your replacing function.