I found the solution. Need to add the following in the properties of portal-ext.properties:
auto.login.hooks=com.liferay.portal.security.auth.CASAutoLogin,com.liferay.portal.security.auth.NtlmAutoLogin,com.liferay.portal.security.auth.OpenIdAutoLogin,com.liferay.portal.security.auth.OpenSSOAutoLogin,com.liferay.portal.security.auth.RememberMeAutoLogin,com.liferay.portal.security.auth.SiteMinderAutoLogin,com.liferay.portal.security.auth.ParameterAutoLogin
Next, need to make the following request:
http://localhost:8082/web/guest?parameterAutoLoginLogin=some_email¶meterAutoLoginPassword=some_password
Now everything is Ok.
More information can be found here: