I am rewriting an old visual basic 6 application by using ASP.Net MVC.
This old app will extract data based on username and password the user entered. It uses the username and password to connect to AS400 and get different data value (Because the users are from different companies).
Now when developing on ASP MVC app, the user logins through another portal page and uses cookie authentication. There are no username and password to be passed to the connection string. This MVC app needs to use the login information to connect to AS400 as well.
My issue is: On the vb6 app, it uses username and password for each AS400 connection. But on ASP app, I only get the cookie string. And If I want to connect to AS400, I have to create a generic account. However, the generic account cannot distinguish the users' companies. I am not sure how the AS400 handles each users and provided different data.
Please give me some advises and directions. Thank you so much.