I am using Liferay 6.2-ce-ga3, primefaces 6 and JSF2.1. I have enabled CSRF protection for my portlet adding the follow code in liferay portal-ext.properties and portlet portal-ext.properties:
auth.token.check.enabled=true
auth.token.impl=com.liferay.portal.security.auth.SessionAuthToken
futhermore, I've added in portlet.xml
<init-param>
<name>check-auth-token</name>
<value>true</value>
</init-param>
For test, I removed p_auth=<code>
from my form
url then I submitted the form and it's worked. That's not good, I't should not allow the request without the token.
- did I forget add a filter in configuration?
- how liferay check the p_auth?
- should I check manually p_auth token in my bean like this tutorial?