Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getUserPrincipal() & getRemoteUser() values are null in WSRP

2657797Apr 21 2014 — edited Apr 28 2014

Hi,

I am trying to implement WSRP using weblogic portal 10.3.6. producer and consumer are deployed in two different domains. i wrote a simple java producer portlet which prints all the server and user details. am getting getUserprincipal() & getRemoteUser() are null while consuming the portlet.

private void retrieveRequestInfo(PortletRequest request) {

   //private void retrieveRequestInfo(ActionRequest request) {

  addProperty("remote user", request.getRemoteUser());

  addProperty("Authorization type", request.getAuthType());

  String principalName =

  (request.getUserPrincipal() == null)

  ? null

  : request.getUserPrincipal().getName();

  addProperty("Principal Name", principalName);

  }

could someone please help me with this issue?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2014
Added on Apr 21 2014
2 comments
1,685 views