Hello World,
I have some RESTful WCF web services all with custom authentication on them running on a W2k8 box.
I have a few webpages I'm working on that require a user to login, so I thought I could just do a GET from one of these services and use the provided credentials in the header and we'd be able to easily verify the user.
Problem is, if I put in bad credentials, the browser (tried chrome and firefox) first tries the GET, and then when it works out my credentials are bad, it gives me a big ugly browser generated dialog asking me for a username and password.
My question is, how can I interrupt this behavior before the browser gives me this big ugly window? Or should I be looking at using a different technique to do authentication?
I'm using DOJO xhrGet function to do my GET's from WCF end, have found it to be a really easy library to use.
Cheers
Hadley