使用其他用户打开chrome Web浏览器 [英] Open chromium web browser with a different user
问题描述
在我们的工作环境中,我们为用户阻止了社交网站。我开发了一个Windows应用程序,使用Facebook / twitter显示使用ChromiumWebBrowser作为浏览器控件的提要。现在,由于这些站点被阻止,因此无法在应用程序中打开它们。我们的基础架构为特定用户开放了这些网站。现在我想弄清楚如何冒充CEFsharp控件来使用这个用户。我试图将整个方法嵌入到简单的模拟中,但这不起作用。它仍然考虑登录用户帐户。
公共ChromiumWebBrowser浏览器;
CefSettings settings = new CefSettings();
private void InitBrowser()
{
Cef.Initialize(settings);
browser = new ChromiumWebBrowser(www.facebook.com);
browser.Dock = DockStyle.Fill;
this.Controls.Add(浏览器);
browser.Dock = DockStyle.Fill;
}
什么我曾尝试: <无线电通信/>
。使用简单的模拟NuGet包试图模仿。
是啊,我们不会帮助你绕过贵公司的安全。
in our work environment we have social networking sites blocked for users. i have developed an windows application which uses facebook/ twitter to show feeds using ChromiumWebBrowser as a browser control. Now since these sites are blocked they cannot be opened in the application. Our infrastructure has opened up these sites to a particular user. Now am trying to figure out how to impersonate the CEFsharp control to use this user. I tried to embed the entire method within simple impersonation but that does not work. It still considers the logged in user account.
public ChromiumWebBrowser browser; CefSettings settings = new CefSettings(); private void InitBrowser() { Cef.Initialize(settings); browser = new ChromiumWebBrowser("www.facebook.com"); browser.Dock = DockStyle.Fill; this.Controls.Add(browser); browser.Dock = DockStyle.Fill; }
What I have tried:
Tried impersonation using simple impersonation nuget package.
Yeah, we're not going to help you bypass your companies security.
这篇关于使用其他用户打开chrome Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!