I am implementing ServiceStack side-by-side with a MVC application. My main application uses form authentication which is configured in my web.config. When the authentication of fails, I don't get the 401 UnAuthorized
as I expect I should. (reference: https://stackoverflow.com/a/13073251/743752)
I have added HtmlRedirect = null
to my AuthFeature
but this did not work. My request are returning with what is my login page. ~/Login?ReturnUrl=%2fapi%2fauth%2fcredentials
Im sending my payload as POST with content-type: application/json
Is there another way of disabling redirects on failed login?