I’m running a web-api webservice inside a MVC4 Forms authentication enabled website. The Forms authentication app uses the web-api webservices.
I’ve protected the web-api with the [Authorize] attribute.
Now when I call the web-api from the MVC4 app while the authorization ticket has expired I get an ugly browser kind of logon dialog (which doesn’t work with forms authentication).
I’m not getting this on my dev machine (IIS7.5), which I don’t really understand!
How can I prevent this dialog to come up? I only need to receive the 401.
I’m running a web-api webservice inside a MVC4 Forms authentication enabled website. The Forms
Share
Moved the site to an IIS8 server and now the problem has gone…