mshima / generator-jhipster-multitenancy2

JHipster multitenancy blueprint
Apache License 2.0
2 stars 1 forks source link

User registration strategy #11

Open shwabnitz opened 5 years ago

shwabnitz commented 5 years ago

A user registration without a tenant makes no sense, see also @mshima last comment at issue #10.

If the user would be able to choose the tenant, he would be able to see all tenants to choose from one. This is a security problem. An allowed list of domain names for user email addresses associated with tenants can be an unambiguous indication. But even then a tenant administrator must be able to deny a users registration (or must confirm it). Background: this could be a paid service and the tenant (the customer of the service) only bought a 5 user license for example. So the registration would rather be a "registration request" to the tenant administrator. But definitely this is an option.

This brings me also to another approach / use cases for business applications managing confidential data in which only authorized people are allowed to access tenant's data:

mshima commented 5 years ago

Can be done by:

shwabnitz commented 5 years ago

This is a good approach. Looking from a high level to user stories / use cases this would be a useful feature for the blueprint itself. My question here is: do you implement that as a feature or would that be a specific feature of my application which I need to implement?