On Thu, Aug 25, 2011 at 12:51 PM, John de la Garza <[email protected]> wrote:
> I am playing with http basic authentication.
>


I'm having second thoughts no this.  If I want full control over the
login process and to never see the browser specif login window (for
basic http auth), it looks like I'll need to not use http basic auth
and have my RPC methods require authentication when called.

It seems there is no way to ask the browser if it has already
authenticated.  And If I simply assume they have not and ask for a
name and password to add to my rpc object, I have no way of knowing if
the pw and user name are correct with out generating some http req.
In doing this (if the username/pw are wrong) I get the browser pop
up...



I tried to use this code to check if I was authenticated. I hoped to
not see the pop up but just get an error.  I was hoping that somehow
my javascript wuoldn't trigger the box, but I guess it is at the
browser level so I can't get around it.var req = new
qx.io.remote.Request("/cgi-bin/json.py");
var that = this;
req.addListener("failed", function(e) {
  //var req = e.getTarget();

  // Response parsed according to the server's
  // response content type, e.g. JSON
  //req.getResponse();
that.debug('failed');

}, this);
req.addListener("completed", function(e) {

that.debug('completed');

}, this);

// Send request
  // response content type, e.g. JSON
this.debug('before send');
req.send();

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to