I got a fairly simple WinJS Metro app which gets asks the user for a username and password before getting some JSON-data from a webservice.
I use jQuery.ajax() to get the data, and i set the basic authentication header correctly. However, if the user enters incorrect credentials, and the server returns a 401, the metro runtime displays a login screen. The error handler passed to the jQuery.ajax() function isn't called unless the user presses "cancel" on the runtime provided login screen.
I want the program to handle failed login attempts, is there a way to suppress the runtime logon screen?