Foren

Login screenlet not working

GShah Afridi, geändert vor 8 Jahren.

Login screenlet not working

Junior Member Beiträge: 46 Beitrittsdatum: 21.10.13 Neueste Beiträge
Hi every,

I am trying to login using liferay Login Screenlet but i am getting the below error on android side

E/LiferayScreens﹕ Could not login
com.liferay.mobile.android.exception.ServerException: Authenticated access required
at com.liferay.mobile.android.http.HttpUtil.handlePortalException(HttpUtil.java:255)
at com.liferay.mobile.android.http.HttpUtil.handleServerError(HttpUtil.java:172)
at com.liferay.mobile.android.http.HttpUtil.post(HttpUtil.java:186)
at com.liferay.mobile.android.task.ServiceAsyncTask.doInBackground(ServiceAsyncTask.java:39)
at com.liferay.mobile.android.task.ServiceAsyncTask.doInBackground(ServiceAsyncTask.java:29)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)


and server side
Skipping com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin
com.liferay.portal.security.auth.AuthException: com.liferay.portal.security.auth.AutoLoginException: com.liferay.portal.security.auth.AuthException
at com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin.verify(BasicAuthHeaderAutoLogin.java:116)
at com.liferay.portal.security.auth.AuthVerifierPipeline._verifyRequest(AuthVerifierPipeline.java:325)
at com.liferay.portal.security.auth.AuthVerifierPipeline.verifyRequest(AuthVerifierPipeline.java:75)
at com.liferay.portal.security.ac.AccessControlImpl.verifyRequest(AccessControlImpl.java:96)
at com.liferay.portal.security.ac.AccessControlUtil.verifyRequest(AccessControlUtil.java:69)
at com.liferay.portal.servlet.filters.authverifier.AuthVerifierFilter.processFilter(AuthVerifierFilter.java:134)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
I am using the Liferay Portal 6.2 EE with tomcat bundle and mysql database also i am using android studio 1.3

Please help me as this is very urgent.
thumbnail
Javier Gamarra, geändert vor 8 Jahren.

RE: Login screenlet not working

Expert Beiträge: 348 Beitrittsdatum: 12.02.15 Neueste Beiträge
Seems that you are requested an authenticated resource from the Android side with a wrong user/password (there was an error in some portal version that would log that trace in the server side)

Are you sure the companyId/groupId/password are fine? do you have a custom login filter?

Can you send me the code?
thumbnail
sejal patel, geändert vor 6 Jahren.

RE: Login screenlet not working

New Member Beiträge: 2 Beitrittsdatum: 24.08.16 Neueste Beiträge
Here is the solution for liferay 7 Login screenlet
http://www.enprowess.com/blogs/login-screenlet-in-liferay-dxp/
kristina lopez, geändert vor 4 Jahren.

RE: Login screenlet not working

New Member Beitrag: 1 Beitrittsdatum: 17.05.19 Neueste Beiträge
if your login screenlet is not working you have to recheck your code again, maybe due to some syntax or logical error you are facing this issue.