Thanks for the responce Darin.

I was doing that. I found what I was doing wrong though, with a bit of
debuging and some help from Silver. In a JS component, if you want to
set out params, you must set the value property, ie:

        invalidatesIdentity.value = true;
Gary

Darin Fisher wrote:
> You need to return true for invalidatesIdentity from your
> challengeReceived method.
>
> -Darin
>
> On 24 Apr 2006 07:28:52 -0700, Gary van der Merwe <[EMAIL PROTECTED]> wrote:
> > Hi
>
> > I'm trying to write a nsIHttpAuthenticator for GoogleLogin
> > (http://code.google.com/apis/accounts/AuthForInstalledApps.html)
>
> > I've created a extension that has a nsIHttpAuthenticator component that
> > registers it's self as
> > "@mozilla.org/network/http-authenticator;1?scheme=googlelogin".
>
> > When I try access a page that requires GoogleLogin authentation (such
> > as http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full/
> > ), the generateCredentials is called, but there is no prompt for a user
> > name and password, and the user name and password passed to the method
> > is allways null.
> >
> > Is there something special I need to do to get browser to prompt for a
> > username and password?
>
> > I've uploaded my extension to here
> > http://garyvdm.googlepages.com/GoogleLogin.xpi - if you wish to look at
> > the code.
> 
> > Gary

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to