I am planning a public Web Api in ASP.Net Core. Also there is a database connected and sign on is planned as well.
There is a connection from my application to the database open using Integrated Security=True;
. Is it possible to connect to the database using a different user (from active directory). Not the one under which the application is running, but any other user from Active Diretory.
My understandin is:
- The application runs as a certain user.
Integrated Security=True;
will open a connection as that user -> Not possible. - Impersonation of another user requires the app to have elevated rights and know the password from that user -> Not an option.
- Doing it without a password means the applications right have to be elevated to the highest possible -> not an option.
So is there any way to connect to the database as a certain user from our AD? I have the feeling it's not possible.
Thank you!