views:

177

answers:

1

I'm building an Adobe Air app that interacts with a third party service using HTTP Basic auth for it's authentication. I'd like to handle the login process completely in my own code. I'm using jQuery to handle the ajax.

The issue is that when the user enters bad credentials Air pops up an authentication dialog box before my javascript even gets notified of the 401.

I've read that there are two attributes I can mess with:

  • window.htmlLoader.authenticate
  • air.URLRequestDefaults.authenticate

Setting the URLRequestDefaults.authenticate to false seems to have no effect, which makes sense since I'm not using URLRequest. Setting the htmlLoader.authenticate definitely disables the dialog box from popping up, but every request is now returned as a 401.

Is there a way to prevent this dialog from popping up and letting my js handle the authentication?

A: 

Hi Matt,

I'm facing the same problem right now, did you find any solution?

Thanks

Pepsi

related questions