WebSphere Portal Server - getRemoteUser() method in WSRP

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > November 2004 > getRemoteUser() method in WSRP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author getRemoteUser() method in WSRP
jacky

2004-11-01, 2:47 am

Hi :
I have enabled portal security in WPS 5.0.2.1 . Now , I can use
getRemoteUser() method in JSR168 . Then I enable WSPR in WPS 5.0.2.1 . But I
found getRemoteUser() method return null in WSRP comsumer portlet .
What's the reason? Wheather I need to do more configuration about WSRP ?
Please give me some advice.
Thanks.

regards

Jacky


Pim

2004-11-01, 7:48 am

One has to be challenged to retrieve the userinfo. So is this the case?

"jacky" <chenwei0383@sina.com> wrote in message
news:cm4tdb$3jbk$1@news.boulder.ibm.com...
> Hi :
> I have enabled portal security in WPS 5.0.2.1 . Now , I can use
> getRemoteUser() method in JSR168 . Then I enable WSPR in WPS 5.0.2.1 . But
> I
> found getRemoteUser() method return null in WSRP comsumer portlet .
> What's the reason? Wheather I need to do more configuration about WSRP
> ?
> Please give me some advice.
> Thanks.
>
> regards
>
> Jacky
>
>



jacky

2004-11-01, 8:47 pm

Yes , I need to treat my JSR168 portlet as WSRP portlet . In my jsr168 code
, I use getRemoteUser() method to logon automaticly . It's ok in jsr168
portlet . But when I visit the WSRP portlet what refer to my jsr168 portlet
, getRemoteUser() return null .

So what's the reason? Can you give me the answer?

Thanks

regards

Jacky

"Pim" <pvwetten@nospam.please.hotmail.com> дÈëÓʼþ
news:cm52vi$7mus$1@news.boulder.ibm.com...
> One has to be challenged to retrieve the userinfo. So is this the case?
>
> "jacky" <chenwei0383@sina.com> wrote in message
> news:cm4tdb$3jbk$1@news.boulder.ibm.com...
But[vbcol=seagreen]
WSRP[vbcol=seagreen]
>
>



Masanobu Ida

2004-11-01, 8:47 pm

Hi, is the following PQ applicable to your case?

PQ91457-Methods returning null instead of
object representing ID of current user

Abstract

The methods PortletRequest.getRemoteUser() and
PortletRequest.getUserPrincipal() are returning null instead of the object
that represents the login ID of the current user in an env


<http://www-1.ibm.com/support/docvie...uid=swg24007738>


Masanobu Ida

"Pim" <pvwetten@nospam.please.hotmail.com> wrote in message
news:cm52vi$7mus$1@news.boulder.ibm.com...
> One has to be challenged to retrieve the userinfo. So is this the case?
>
> "jacky" <chenwei0383@sina.com> wrote in message
> news:cm4tdb$3jbk$1@news.boulder.ibm.com...
But[vbcol=seagreen]
WSRP[vbcol=seagreen]
>
>


jacky

2004-11-11, 2:48 am

Here is the description of PQ91457.

PQ91457
=======

Problem Description:
The methods PortletRequest.getRemoteUser() and
PortletRequest.getUserPrincipal()
are returning null instead of the object that represents the login ID of
the current user
in an environment with security disabled (like WSAD)

Problem Solution:
The code was fixed.

Affected Users:
All portal users.

Pre-Requisite(s):
Portal Version: 5.0.2.1
Portal Fixes: ---

I think it is useful for not enabling portal security . If you are not
enabling portal security , actually you can not use getRemoteUser() method
to get UserID . But if you apply PQ91457 , the getRemoteUser() method can
work according to my understanding . But , it's not my question .

Actually , I have enabled portal security . I have tested it , the
getRemoteUser() method can work in my code as JSR168 portlet , but when I
apply this jsr168 portlet to server as WSRP portlet , the getRemoteUser()
method return null . Then , I have applied PQ91457 for my WPS 5.0.2.1 . The
getRemoteUser() method still return null when it was treated as WSRP portlet
..

How to solve this problem?How to let getRemoteUser() method work well in
WSRP ? Please give me some advice .

Thanks

regards

Jacky

"Masanobu Ida" <jl08283@jp.ibm.com> $B<LF~(B?$B7o(B
news:cm6pfa$1b3m$1@news.boulder.ibm.com...
> Hi, is the following PQ applicable to your case?
>
> PQ91457-Methods returning null instead of
> object representing ID of current user
>
> Abstract
>
> The methods PortletRequest.getRemoteUser() and
> PortletRequest.getUserPrincipal() are returning null instead of the object
> that represents the login ID of the current user in an env
>
>
>

<http://www-1.ibm.com/support/docvie...uid=swg24007738>
>
>
> Masanobu Ida
>
> "Pim" <pvwetten@nospam.please.hotmail.com> wrote in message
> news:cm52vi$7mus$1@news.boulder.ibm.com...
> But
> WSRP
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com