Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Posts: 5
Registered: ‎04-21-2013
My Device: Z10
My Carrier: P4

Basic authentication in WebView

Hello,

I'm looking the way to perform basic authentication in WebView, but I can't get it to work. I was looking for some signal like QNetworkAccessManager's authenticationRequired, but it looks like WebView doesn't emit such signal. I also tried setting WebView's url with credentials, something like this:

 

  1. WebView *view = new WebView();
  2. QUrl URL="http://website";
  3. URL.setUserName("username");
  4. URL.setPassword("password");
  5. view->load(URL);

but it also didn't work. I still get the login popup from server to provide credentials. Any suggestions?

 

Thank you

Highlighted
New Contributor
Posts: 5
Registered: ‎04-21-2013
My Device: Z10
My Carrier: P4

Re: Basic authentication in WebView

Anyone? Please?