Getting Liferay authentication details in Application-class

Hello everyone

I am new at portal development and I have studied little bit portlet development and Liferay. I have a question regarding authentication and authorization… If I would construct my application so that I would count on the Liferay to authenticate user and define what roles user has, then how can I get that information in my Vaadin application ?

Is there a wiki or instructions how to interact with Liferay API’s and get the necessary information ? My application would need to get the username and role(s) from the liferay. This is crucial part of my application that it would count on liferay to do the authentication and authorization, then it would be one module less to implement…

Thank you for advance

Best regards Tuomas