Simon wrote:
I'm creating an app that embeds Gecko. In it, I create a few http channels here and there, that do work unrelated to the rest of the browser.
I implemented my own listeners for them, including an nsIAuthPrompt to handle http auth. This does not prompt the user for any usernames/passwords, but instead reads them from a configuration file. (The servers and pages it is likely to be connecting to are known)
It is possible for the credentials required to change during the running cycle of the program. Currently though, once a valid set of credentials has been supplied, moz remembers them for every subsequent http request until it has been shut down and started up again.
Is there some way I can tell Moz not to do this? Ideally, I'd like to be able to supply some credentials and say "use these for this connection only". But being able to clear them from Moz's cache would work too. I looked at the code and saw it seemed to be storing these in an nsAuthCache, but couldn't figure out how to get access to this object using the embedding api.
Any suggestions?
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding
See nsIHttpAuthManager. You can use it to clear all cached auth credentials, or you can use it to modify what is stored for a particular site. So, you may be able to use it to "remove" cached credentials.
It is a fairly stable interface, but it is not frozen. Of course, nsIAuthPrompt isn't frozen either.... but, these interfaces probably should be.
-Darin _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
