Want develop one simple web application (Plack/PSGI based). The application should be allowed to run only for authenticated users via the Liferay system. Looking for any hints/help for the next questions:
The currect Liferay (Liferay Portal Community Edition 6.1.1) is installed on Apache-Coyote/1.1
. (I know nearly nothing about Java, wars, portlets and other liferay things :().
- Need i create another virtual host?
- or the
Apache/Coyote
can act as reverse proxy (so will forward any request coming tohttp://liferay.example.com/perlapp/*
to my Plack application (what will run on another port e.g. 5000?) (requests should allow file uploads and so on).
And the main programming questions are:
How to use the Liferay authentication system - from the perl?
Is (possible/or must) to call LifeRay, or (I can/should) use some standard perl module with direct connection to some "Liferay user-database"?. (preferably with some Plack::Middleware::Auth::.*)?
The simplest would be for me - idea - if the
Apache/Coyote
can act as a reverse proxy, is possible to do all authentication on theCoyote/Liferay
level and my plack-web-app doesn't need care about the authentication? Is this possible?