We are using MAF to load external plugins and activate them as new processes. The host process is a Windows Service that runs under user account svc-host.
Is there any possibility to activate a plugin in a separate process but running under another user account (svc-mypluginuser)?
Example use case: plugins connect to their own databases. Database security is AD based. We need to ensure each plugin has access to its own database only.
Code we use:
var process = new AddInProcess();
var view = pluginToken.Activate<MyPlugin>(process, AddInSecurityLevel.Host);
The AddInProcess does not seem to have any way to pass in any user credentials.