Base solution for your next web application
Open Closed

Using the same database for different applications #7922


User avatar
0
dolcegaben created

Hello,

I am using asp.net zero and have a question for you. In general, we are going to create a new web application, which will have the opportunity to make authorization to asp.net zero-project. Ideally, we would like to have the same user for both projects. Additionally, the user will have three opportunities to use these services.

  1. The user has access only for the first project.
  2. The user has access only for a second.
  3. The user has access to both. Could you , please, explain what is the best way to implement this part? Should we use the same database(abpUser) for both applications or should we somehow send requests from one server to another?

Thank you in advance!


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can consider separating user-related functions into a single project. Other projects use this project to obtain user information, identity authentication, authorization, etc.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dolcegaben,

    If both apps are AspNet Zero apps, you can use the same database. In that case, you can create a new Entity named UserProjects and check that table on user login.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.