title: How to plug in a custom authorization module to liferay to integrate with WSO2 Identity Server
body: <p>I have a requirement to plugin a custom authorization module to liferay. For example when rendering the portlets I want to decide which portlets should be visible to the current user. Basically I wan't to intercept before the portlet rendering and do a XACML based authorization with an external Identity Provider and then depending on the result render only the portlets, pages for which the user has permissions.</p>
  
  <p>How to achieve this kind of a requirement? What is the extension point of Liferay to do this?</p>