Welcome Guest Search | Active Topics | Sign In | Register

Authentication and samples with the EO Browser Options
crazyfroggy
Posted: Sunday, April 21, 2019 3:52:48 AM
Rank: Newbie
Groups: Member

Joined: 4/20/2019
Posts: 5

Hi,
I am trying to use the authentication feature, and to send a click event to the host.

1 - In the EO Total Help 2019 :
Eo.WebBrowser -> Advanced Topics -> Authenticatipn ......Continue link don't work.

2 - with the EO.Total.Samples.sln project, when I launch it, I get a http://localhost:63500/ page in my browser by default (FF), saying :
" EO.Pdf Samples
Samples for EO.Pdf are provided in two different projects:
EO.Pdf Demo Application
Note: This application contains most samples. Check this application first regardless whether you use EO.Pdf in a Web application or not...."


Nothing about some Eo.WebBrowser feature.

Yet, the TabbedBrowser appli works, but I don't see how can I check the run in a debbuging mode, to see what part of code is applied with a given event ( a mouse click, for instance).

My goal is to use your web features to get a page in a web view, or something else, with authentication done by the program, and to send click events to the host .
With all your demo files and help files, sorry, but I don't see how can I do that.
Tx a lot for your help.
eo_support
Posted: Monday, April 22, 2019 10:13:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

Thanks for pointing out the link error in the documentation. We will fix that in our next build. The correct link should be:

https://www.essentialobjects.com/doc/eo.webbrowser.needcredentialseventargs.continue_overloads.aspx

If you are using EO.WebBrowser, then you can ignore the sample application for EO.Pdf. By default, EO.WebBrowser will display a dialog asking for user name and password. You can handle NeedCredentials ONLY if you wish to override this behavior. For example, the following code just provides hard coded user name and password without displaying any UI:

Code: C#
//Attach the event handler
webView.NeedsCredential += WebView_NeedCredentials;

private void WebView_NeedCredentials(object sender, NeedCredentialsEventArgs e)
{
    //Replace "username" and "password" with the actual user name and password
    e.Continue("username", "password");
}


Hope this helps.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.