Jonnie
Jonnie

Reputation:

How to avoid native authentication popup in AIR on Mac?

In AIR on Mac, when I send login creds to a service and they're incorrect, AIR displays a native popup window to try logging in again without dispatching an error event. Twitter provides a header (suppress_response_codes=true), which returns any error as a status 200 with the error message. I'm using HTTPService to connect to a service without a header like this. Are there any properties or headers I can send to avoid this popup?

Upvotes: 1

Views: 758

Answers (2)

Jonnie
Jonnie

Reputation:

I was able to prevent the popup window by switching to URLLoader and using URLRequest.authenticate=false.

Upvotes: 2

gcstr
gcstr

Reputation: 1537

If you handle all the events in your class the message will not appear to the user. Try to declare every event-related methods.

Upvotes: 0

Related Questions