Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Create multiple web applications with asp.net zero #3571


User avatar
0
expertit created

Hello,

I need to develop a multi-tenant project. The project is divided in 3 applications, accessed according to the role used by the user : admin, expert or subject.

About that, my questions are :

the best architecture to manage the 3 applications : 1 VS WEB project and 3 areas OR 3 VS WEB project
how to manage the fact that one email address may be associated with one or two users in order to manage the fact that one person may be expert and subject ?

Thanks for your advices Albert Janssens


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    1. I think in your case it is better to go with areas instead of 3 different projects.
    2. Why don't you use Roles instead of creating multiple users with same email address ? Currently, it is not possible to create two users with same email under a tenant. You can create different users with same email address if they belong to different tenants. If you are going to disable multi tenancy, this is not possible as well.

    So, for question 2 I think using roles might be a good choice but we don't know your domain very well, so please explain if this is not convinient for you.

    Thanks.

  • User Avatar
    0
    expertit created

    Hello ismcagdas,

    I will try with your proposal about the use of areas.

    As you say the best should to be to manage that via roles. But the problem is the following :

    • a person may be subject and/or expert
    • a user is only or subject or expert
    • according to the username, the user is redirected to the subject web application or to the expert web application.
    • but we need to communicate to the person via his email

    Another solution is to use one user login and use a different URL like : expert.espertis.eu or subject.espertis.eu in order to redirect to the right web application but we want to use the "tenant" identification via URL. Is it sill work with URL like tenant1.expert.espertis.eu or tenant1.subject.exspertis.eu ?

    Or another solution could be to offer via menu, a way to go to the other application when the user has the two roles : subject and expert ?

    Thanks for your help, Albert

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry I confused about user & person. I just thought of user. Yes, you can identify tenant when you use urls like tenant1.expert.espertis.eu or tenant1.subject.exspertis.eu.

    I think this can solve your problem, right ?

    Thanks.

  • User Avatar
    0
    expertit created

    Hi,

    I think also this is the solution.

    I will try.

    Thanks Albert

  • User Avatar
    0
    ismcagdas created
    Support Team

    Ok, let us know if it does not work.