How to disable ServiceStack redirect on failed authentication? -


i implementing servicestack side-by-side mvc application. main application uses form authentication configured in web.config. when authentication of fails, don't 401 unauthorized expect should. (reference: https://stackoverflow.com/a/13073251/743752)

i have added htmlredirect = null authfeature did not work. request returning login page. ~/login?returnurl=%2fapi%2fauth%2fcredentials
im sending payload post content-type: application/json

is there way of disabling redirects on failed login?

are using formsauthentication , servicestack authentication in same application? think mvc doing redirect (not servicestack) because have <authentication> element in web.config...probably like...

<authentication mode="forms">   <forms loginurl="~/login" /> </authentication> 

if don't need formsauthentication can remove <authentication> element web.config file.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -