Reputation: 11
I am adding an iFrame to the page in Liferay which points to an external webapp. In order to function properly, this webapp needs to have the roles of the user who is logged in to Liferay and using the portlet.
I know how to pass the user_id and screen name to the external webapp, but not the roles. I know I can probably look them up in the liferay db with the user_id, but is there a way to pass the roles somehow through iFrame? Maybe in hidden variables?
Thank you.
Upvotes: 1
Views: 650
Reputation: 4210
You can write jsp hook to override html/portlet/iframe/proxy.jsp. And add your user role as hidden parameter.
Upvotes: 1