Issue
- Users may occasionally be unable to authenticate in Liferay DXP with Liferay Screens for Android. The following errors might be observed in the web server logs:
POST /c/portal/login HTTP/1.1" 500
And the mobile devices may show:Cookie invalid or empty
Environment
- Liferay DXP 7.0+
- Liferay Screens
Resolution
a) If you are using login mode cookie:
- Stop the application server
- Add this line to your portal-ext.properties file:
auth.token.ignore.origins=com.liferay.portal.action.LoginAction - Start the application server
- Go to Control Panel > Configuration > Access "Server access policy"
- Disable SYSTEM_USER_PASSWORD and click Save
- Re-enable SYSTEM_USER_PASSWORD and Save
b) If you are using login mode oauth2:
- Go to Control Panel > Configuration > Access "Server access policy"
- Disable SYSTEM_USER_PASSWORD and click Save
- Re-enable SYSTEM_USER_PASSWORD and Save
- Repeat the operations for all portal instances