Dev-tech-network Archive

List Statistics

  • Total Threads: 109
  • Total Posts: 40

Phrases Used to Find This Thread

  #1  
17-08-2012 11:16 AM
Dev-tech-network member admin is online now
User
 

Hi All,

I am writing a test case for an asyncPromptAuth() implementation with sjs files,
and I am try to simulate a scenario that the prompt shows only password field,
that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

Thanks,
Patrick
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)

  #2  
17-08-2012 02:34 PM
Dev-tech-network member admin is online now
User
 

Hi All,

I am writing a test case for an asyncPromptAuth() implementation with sjs files,
and I am try to simulate a scenario that the prompt shows only password field,
that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

Thanks,
Patrick
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)
On Fri, Aug 17, 2012 at 3:16 AM, Patrick **** <> wrote:
> I am writing a test case for an asyncPromptAuth() implementation with sjs files,
> and I am try to simulate a scenario that the prompt shows only password field,
> that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
> asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
> Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

So, this only happens for (certain) FTP requests, basically for
ftp:/// when the server asks for a password. I don't
think we have an FTP server for tests (maybe we do?)

Why do you need an actual caller? Can't your test directly call your
auth prompt implementation? Though I don't really understand how SJS
files relate to auth prompts.

-christian
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)

  #3  
23-08-2012 04:08 AM
Dev-tech-network member admin is online now
User
 

Hi All,

I am writing a test case for an asyncPromptAuth() implementation with sjs files,
and I am try to simulate a scenario that the prompt shows only password field,
that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

Thanks,
Patrick
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)
On Fri, Aug 17, 2012 at 3:16 AM, Patrick **** <> wrote:
> I am writing a test case for an asyncPromptAuth() implementation with sjs files,
> and I am try to simulate a scenario that the prompt shows only password field,
> that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
> asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
> Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

So, this only happens for (certain) FTP requests, basically for
ftp:/// when the server asks for a password. I don't
think we have an FTP server for tests (maybe we do?)

Why do you need an actual caller? Can't your test directly call your
auth prompt implementation? Though I don't really understand how SJS
files relate to auth prompts.

-christian
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)
Thank you for the information. Because this asyncPromptAuth communicates
with other elements in the DOM tree, it need to run in a browser. I use
Mochitest and SJS file to generate Http 401 response and let
asyncPromptAuth get called, to test if our asyncPromptAuth implementation
handle it correctly.

Patrick

----- Original Message -----
From: "Christian Biesinger" <>
To: dev-tech-
Sent: Friday, August 17, 2012 9:34:04 PM
Subject: Re: nsIAuthInformation.ONLY_PASSWORD

On Fri, Aug 17, 2012 at 3:16 AM, Patrick **** <> wrote:
> I am writing a test case for an asyncPromptAuth() implementation with sjs files,
> and I am try to simulate a scenario that the prompt shows only password field,
> that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to
> asyncPromptAuth(). But I don't know how to let caller pass such authInfo.
> Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set?

So, this only happens for (certain) FTP requests, basically for
ftp:/// when the server asks for a password. I don't
think we have an FTP server for tests (maybe we do?)

Why do you need an actual caller? Can't your test directly call your
auth prompt implementation? Though I don't really understand how SJS
files relate to auth prompts.

-christian
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
_______________________________________________
dev-tech-network mailing list
dev-tech-
https://lists.mozilla.org/listinfo/dev-tech-network
)





NewsArc Lists  |  Culture Pages   |  Computing Archive  |  Media-Pages
Link to this page on your blog or website by copying the HTML code below and pasting it into your site: