Autologin hook for Liferay sso support.