Fórum

Login screenlet not working

GShah Afridi, modificado 8 Anos atrás.

Login screenlet not working

Junior Member Postagens: 46 Data de Entrada: 21/10/13 Postagens Recentes
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, modificado 8 Anos atrás.

RE: Login screenlet not working

Expert Postagens: 348 Data de Entrada: 12/02/15 Postagens Recentes
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, modificado 6 Anos atrás.

RE: Login screenlet not working

New Member Postagens: 2 Data de Entrada: 24/08/16 Postagens Recentes
Here is the solution for liferay 7 Login screenlet
http://www.enprowess.com/blogs/login-screenlet-in-liferay-dxp/
kristina lopez, modificado 4 Anos atrás.

RE: Login screenlet not working

New Member Mensagem: 1 Data de Entrada: 17/05/19 Postagens Recentes
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.