Get and fill http basic authentification form

Add-in Express™ Support Service
That's what is more important than anything else

Get and fill http basic authentification form
 
OlivierD




Posts: 3
Joined: 2014-12-12
Hi,

I'm developing with Add-in Express for Internet Explorer and .NET, Standard 9.2.6124. I need to know when a website requests a http basic authentification like on this website https://websmp107.sap-ag.de/notes and get access to its form to fill the username and password fields. Is there a way to get this object and know when a such form is prompted?

Thank you

Olivier
Posted 12 Dec, 2014 08:28:37 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Olivier,

Please set the HandleHTTPNegotiations property of the iemodule to true. Then you can set the login and password in the code of the OnAuthenticate event handler.
Posted 12 Dec, 2014 09:35:18 Top
OlivierD




Posts: 3
Joined: 2014-12-12
Hi Sergey,

I set the HandleHTTPNegotiations property of the iemodule to true and I implemented the OnAuthenticate event handler. Unfortunately, the event seems to be never called. I tried my add-on with this website http://browserspy.dk/password-ok.php (the username and password are test) and I hard coded the username and password like this for the moment:

              
private void IEModule_OnAuthenticate(object sender, AddinExpress.IE.ADXIEAuthenticateEventArgs e)
        {
            e.UserName = "test";
            e.Password = "test";

            e.Handled = true;
        }


Do I need to do something before the OnAuthentificate event to tell what type of authenticate it is?

Thank you for your support

Olivier
Posted 12 Dec, 2014 11:17:47 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Olivier,

The event works fine for me on this web site. Please check if you use adxloader v9.2.6124 (right click on adxloader.dll in Windows Explorer and press Properties).
Posted 15 Dec, 2014 07:12:12 Top
OlivierD




Posts: 3
Joined: 2014-12-12
Hi Sergey,

You are right, I updated the adxloader dll in my Deployment project and now it's working.

Thank you very much!

Olivier
Posted 15 Dec, 2014 07:45:55 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Olivier,

Let me know if you face any other difficulties.
Posted 16 Dec, 2014 04:32:27 Top