简体   繁体   English

多个用户,多个应用程序,一台服务器

[英]multiple users, multiple applications, one server

I have an idea for a web application that involves a multiple users, two different applications (which will be run from a user's local machine), and a remote database server. 我有一个涉及多个用户,两个不同的应用程序(将在用户的本地计算机上运行)和一个远程数据库服务器的Web应用程序的想法。

Databases stored on remote server: 存储在远程服务器上的数据库:
1) Username database - contains user information 1)用户名数据库-包含用户信息
2) application database - contains two rows, one for each application. 2)应用程序数据库-包含两行,每个应用程序一行。 Stores an application name and password. 存储应用程序名称和密码。
3) app1 database - each row stores information about a single user for the first application. 3)app1数据库-每行存储有关第一个应用程序的单个用户的信息。
4) app2 database - each row stores information about a single user for the second application. 4)app2数据库-每行存储有关第二个应用程序的单个用户的信息。

Each of these two applications will have separate owners and I do not want them to be able to write to the other application's database. 这两个应用程序中的每一个都有各自的所有者,我不希望它们能够写入另一个应用程序的数据库。 Also, because the users will be public users, their password should be required to modify their line in an application database that contains their information. 同样,由于用户将是公共用户,因此在修改包含其信息的应用程序数据库中的行时,需要输入密码。

These are the requirements: 这些是要求:
1) Each user has a username and password. 1)每个用户都有一个用户名和密码。
2) Each application has an application name and password. 2)每个应用程序都有一个应用程序名称和密码。
3) To modify any line in one of the application databases, you will need the user's password and the application owner's password. 3)要修改一个应用程序数据库中的任何行,您将需要用户的密码和应用程​​序所有者的密码。
4) Applications are run on a user's machine. 4)应用程序在用户的计算机上运行。

I'm really not sure how to do this AND make it secure. 我真的不确定如何做到这一点并使其安全。 Does anyone have any ideas? 有人有什么想法吗? I would really like to avoid forcing each application owner to have their own server. 我真的想避免强迫每个应用程序所有者拥有自己的服务器。 I would like to have one central server that can store all the information. 我想要一台可以存储所有信息的中央服务器。

Also, there is potential for the number of applications (and application databases) to expand beyond two. 此外,应用程序(和应用程序数据库)的数量可能会扩展到两个以上。 The programming languages are not necessarily going to be the same for both applications. 两种应用程序的编程语言不一定相同。

I think I have come up with a solution, if anyone wants to critique it that would be really helpful. 我想我想出了一个解决方案,如果有人想批评它会非常有帮助。 Either that or if anyone comes up with a better idea, that would be even more helpful 要么,或者有人提出了更好的主意,那将更有帮助

This Is what I was thinking... 1) Users of the application initiate the process that would require writing to the database of that application. 这就是我在想的... 1)应用程序的用户启动了需要写入该应用程序数据库的过程。 2) The application would collect all required data and make a POST to a servlet, which will be hosted on the main server. 2)应用程序将收集所有必需的数据,并向Servlet进行POST,该Servlet将托管在主服务器上。 3) The data would be displayed to the user, and the user would be asked to login. 3)数据将显示给用户,并要求用户登录。 4) Once the user logs in and verifies the data is valid, it is all saved to the database. 4)用户登录并验证数据有效后,所有数据都将保存到数据库中。

It is a little bit inconvenient that a web browser must be launched just so the user can save their data, but that is really all I can think of. 一定要启动网络浏览器,以便用户可以保存其数据,这有点不方便,但这确实是我能想到的。 All the other ideas I have been able to think of require at least one party to be entirely honest, which we all know isn't a good risk to be taking. 我能够想到的所有其他想法都要求至少一个党派完全诚实,我们都知道这样做并不是冒很大的风险。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM