Typically setting the authenticated user for a request isn't necessary, as indicated by the code comment in ActiveDirectoryAuthenticationService:
public void SetAuthenticatedUserForRequest(IUser user)
{
// users are automatically authenticated via active directory.
}
However there is at least one case where we'd like to use this: when we are trying to impersonate the SiteOwner user, like in the export file command from Orchard.ImportExport module.
The fix is relatively simple, I can submit a PR; however I would like to do so on top of #14 if possible.
I've merge #14 now so feel free to add any changes, I'll be sure to be more on top of pull requests from now on and get the package update in the gallery frequently too.
Typically setting the authenticated user for a request isn't necessary, as indicated by the code comment in
ActiveDirectoryAuthenticationService
:However there is at least one case where we'd like to use this: when we are trying to impersonate the SiteOwner user, like in the
export file
command from Orchard.ImportExport module.The fix is relatively simple, I can submit a PR; however I would like to do so on top of #14 if possible.