Handling expired oAuth token in asp.net mvc

287 Views Asked by At

I created a custom filter class which inherit ActionFilterAttribute

the method looks like below

public override void OnActionExecuting(HttpActionContext actionContext)
{
    //my custom code
}

and my controller looks like below

[HttpPost]
[ActionName("Get")]
[Authorize]
[Filters.AuthorizeLogin()]
public List<BusinessEntities.Admin.Role> Get(Dictionary<string, string> Parameters)
{
    //My api call
}

but the problem is whenever my token got expired my custom function (OnActionExecuting) did not execute,

I want to execute my custom function even after my token got expired.

and should I use [Authorize] filter when using [Filters.AuthorizeLogin()] filter in my api controller.

0

There are 0 best solutions below