title: Where to write authorization in spring boot? In spring interceptor or filter?
body: <p>I am currently developing an application with micro service architecture using OAuth as authentication in Spring Boot. Since my authorization server is a separate micro service, I cant use spring's annotation based role based authorization for my resources in resource server. Therefore I am writing custom implementation to check the role and its access before reaching the resource. I have two choices, either to do it in interceptor or in a Filter.
  Which is best suited for this authorization?  </p>