Yogesh Joshi wrote:
> Hi,
> 
> I am a student at pursuing my post graduation. As a part of a project I am 
> developing a firefox plugin.
> 
> 
> For the same I need to work on Basic & Digest Authentication of
> firefox. Its been quite a few days since I am struggling with a
> problem. I need to capture the parameters entered in the Authentication
> Dialog box using JavaScript or may be some Observer on the
> authentication dialog. 
> 
> What is the event that is fired after the user enters his/her username & 
> password in the authentication dialog and then clicks "Ok"? Is there any way 
> I can get the unencrypted username & password in the plugin script?

You might be able to register to *be* the auth dialog, by implementing 
the contract id "@mozilla.org/passwordmanager/authpromptfactory;1". auth 
prompt and pass on any requests for dialogs you get. This way you can 
see the returned data and record it, before passing it back to the code 
that is calling your component.

/ Jonas
_______________________________________________
dev-security mailing list
dev-security@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-security

Reply via email to