1
votes

I have one global site. I have created another site using liferay. I need to restrict the access to this site for guest user. Whenever I write the URL for accessing the site, it should ask me for the authentication. If user is authenticated and user of the portal then only user can able to view the contents on the site.

I need to modify the guest role or provide some authentication to site.

How can I achieve this in liferay 6.2 version.

1

1 Answers

0
votes

I would probably use servlet filter hook and session attribute:

  • if the URL matches your site, then check session for some custom attribute.
  • and if necessary, do redirect to authentication page