How to return to login page from an filter which inherits from AuthorizationFilterAttribute?

112 Views Asked by At

In method public override void OnAuthorization(HttpActionContext actionContext) I am validating the user, if not successful, I want to land to the login page.

I am using Form Authentication where loginUrl="~/Account/LogOn" is mentioned.

0

There are 0 best solutions below