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

Web and WebWorks Development

Reply
Contributor
Posts: 24
Registered: ‎01-19-2011
My Device: Torch
My Carrier: AT &T
Accepted Solution

Suppressing HTTP 401 Authentication dialog

Hi folks,

 

Is there any way to suppress HTTP 401 authentication dialog that shows up in web works app if user enters wrond username or password?

 

 

Thanks,

Chaitanya

New Developer
Posts: 13
Registered: ‎02-17-2012
My Device: 9860, 9900, playbook
My Carrier: Telenor (Sweden)

Re: Suppressing HTTP 401 Authentication dialog

I'm having the same problem. Has anyone come up with a solution?

Contributor
Posts: 24
Registered: ‎01-19-2011
My Device: Torch
My Carrier: AT &T

Re: Suppressing HTTP 401 Authentication dialog

Hi Henrik,

 

I have solved the probelm by changing the web works source which exists in the installation folder of the web works SDK

 

I didnt find any other easy solution than that.

 

Thanks,

Chaitanya.

Contributor
Posts: 11
Registered: ‎02-18-2012
My Device: None
My Carrier: None

Re: Suppressing HTTP 401 Authentication dialog

I have the same problem, could you be more specific on your solution please?
Developer
Posts: 158
Registered: ‎01-11-2010
My Device: 9700 | 9900 | PlayBook | Dev Alpha
My Carrier: Many :)

Re: Suppressing HTTP 401 Authentication dialog

Can you please post your solution?  Which file did you moddify and how?

- - - - - - - - - -
Contributor
Posts: 24
Registered: ‎01-19-2011
My Device: Torch
My Carrier: AT &T

Re: Suppressing HTTP 401 Authentication dialog

Hi dtater,

 

You need to comment out few lines in Authenticator.java. You can find this file in web works sdk's widget folder. In authenticator.java goto invokeAuthenticationDialogAndStoreCredential function and comment out the invokeAndWait function call.

 

After making this change you need to compile your application.

 

Note: After changing this, all of your appliation which are compiled using this sdk will have this fix.

 

Thanks,

Chaitanya.

Developer
Posts: 158
Registered: ‎01-11-2010
My Device: 9700 | 9900 | PlayBook | Dev Alpha
My Carrier: Many :)

Re: Suppressing HTTP 401 Authentication dialog

[ Edited ]

Many thanks!  Please go through and mark your origional post solved so that anybody who searches for this problem in the future will find and see the solution!

 

THANKS!

 

 

- - - - - - - - - -
New Developer
Posts: 8
Registered: ‎08-04-2014
My Device: BlackBerry Q10/Z10
My Carrier: Telus

Re: Suppressing HTTP 401 Authentication dialog

Any suggestions as to how this can be achieved in BB10? There doesn't appear to be an authenticator.java file in WebWorks SDK 2. Thanks in advance.