To register the use of the application I'm developing, I need each user using my application to query my SQL Server database under their credentials.
In order not to save passwords in recoverable mode, I cannot create a connection for each user (because this will entail knowing their password behind a short window when they log in).
Obviously, the solution to this problem (which may not be optimal) is to run all sensitive requests as the general user of the "Application", posing as an input user (requiring me to associate only the registered user with the username ... that not so bad).
My problem is that Iām not sure how to provide to impersonate all users of a certain role or all users in general (not the brightest idea, because I do not want the application to impersonate a system administrator, for example).
grant impersonate on all to ApplicationLogin
does not work, and there is no documentation that I can find that involves providing an avatar to members of the role, doable ...
Any ideas?
source share