Foren
renderRequest.getRemoteUser() getting null value
preeti kanyal, geändert vor 11 Jahren.
renderRequest.getRemoteUser() getting null value
New Member Beitrag: 1 Beitrittsdatum: 26.03.13 Neueste Beiträge
Hi,
I am facing issue with getting remote user for the first login after I start my server.
My application uses sso for login, and liferay portlet.
After login the welcome JSP tries to get renderRequest.getRemoteUser(), which is null for the first login. If I refresh the page, it gets proper value.
Could anyone please give any idea?
Thanks,
Preeti
I am facing issue with getting remote user for the first login after I start my server.
My application uses sso for login, and liferay portlet.
After login the welcome JSP tries to get renderRequest.getRemoteUser(), which is null for the first login. If I refresh the page, it gets proper value.
Could anyone please give any idea?
Thanks,
Preeti
Pradeep Kumar Badhai, geändert vor 11 Jahren.
RE: renderRequest.getRemoteUser() getting null value
Junior Member Beiträge: 50 Beitrittsdatum: 06.09.11 Neueste Beiträge
Hi Preeti,
If your custom portlet is hook with LDAP then getReomteUser() is not required, you can use this
String userId = UserLocalServiceUtil.getUser(PortalUtil.getUserId(resourceRequest)).getScreenName();
Which will grab the screenName which is same as the LDAP userName and you can make use of the getScreenName() from the user_ table of Liferay database.
Hope this will help !!
If your custom portlet is hook with LDAP then getReomteUser() is not required, you can use this
String userId = UserLocalServiceUtil.getUser(PortalUtil.getUserId(resourceRequest)).getScreenName();
Which will grab the screenName which is same as the LDAP userName and you can make use of the getScreenName() from the user_ table of Liferay database.
Hope this will help !!