ASP.NET 5 MVC 6 + Rest API identity
<p>I have solution with Webapplication and REST api (webapi). In REST api I have implemented Token based security between Web and service. So there is a way to implement custom security check ( for token validation, is it expired, etc) and use [Authorize] attribute? In other words there is a way to check my for my own is user authorized or not in Webapplication ? I have to write my own middleware or smth ? </p>