Rank: Member Groups: Member
Joined: 7/17/2020 Posts: 14
|
Hi,
we replaced .net WebBrowser now with EO WebControl - one issue we have now is a website which uses windows authentication. that worked fine with WebBrowser - but now with EO WebControl the user is getting constantly a credentials popup - are there any settings we have to make to provide windows authentication support?
|
Rank: Member Groups: Member
Joined: 7/17/2020 Posts: 14
|
Any info on this?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Sorry about the delay. Please check whether you have explicitly created Engine object or have recreated/unload AppDomains in your application. EO.WebBrowser does support Windows Authentication, and the user credential information is cached per browser engine once entered until that engine is unloaded. This means:
1. If you have multiple Engine instances, then they will not share the credentials. By default, each AppDomain has a single Engine object. So if you have multiple AppDomain, then you will have multiple Engine objects. Additionally, you can also explicitly create additional Engine object; 2. If the Engine object is unloaded, then user will need to re-enter the credentials. Typically the Engine object is unloaded when your application closes. However since Engine object lives inside an AppDomain, if you unload an AppDomain, it will be unloaded as well. An Engine object can also be unloaded by explicitly calling Engine.Stop. In any of those cases, the credential cache will be lost and the user will need to re-enter the credential next time;
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks!
|
Rank: Member Groups: Member
Joined: 7/17/2020 Posts: 14
|
Hi,
thank you - the problem is more here that the user HAS to enter his credentials. with the browser he just navigate to the site - and he is automaticly logged on with windows auth - with the EO WebControl has has to enter credentials. is there anything we miss?
thx
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
It shouldn't. EO.WebBrowser would use the current user's context to authenticate first. If that fails, then it will trigger NeedCredentials event. You may want to check two things:
1. Whether you are using the latest build; 2. Whether your application is running under a different user context;
Thanks
|