edu.yale.its.tp.cas.client.filter.wrapRequest isn't actually a class. It's simply a string value within a Map that represents either true or false.

You can get the user ID several ways. The easiest is from within a function that is receiving a RenderRequest, you can call it's "getRemoteUser()" method to get the user ID. I believe the RenderRequest's getPortletContext().getPortletSession().getAttribute (CASFilter.CAS_FILTER_USER) should also work (assuming you include the CAS Client jar via "import edu.yale.its.tp.cas.client.filter.CASFilter" in your class), but that's specific to CAS. The former is more generic.

Someone correct me if I'm wrong...

Ryan Shelley
Lead Developer
ITR Web Development/Middleware
California State University, Northridge

818.677.4258
[EMAIL PROTECTED]



On Nov 22, 2006, at 8:05 PM, asha latha wrote:

Hi,

I have casified my uPortal to use CAS3.0 . I am successful pointing CAS to the database and then authenticating the user credentials via database.

Now, how can the portlet application inside the portal get the username.

From http://tp.its.yale.edu/pipermail/cas/2006-October/ 003541.html , I noticed that we can give

<!-- expose REMOTE_USER (from CAS Client version 2.1.0) -->
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
<param-value>true</param-value>
</init-param>
in the client web.xml . But when I take a look at the classes I have in my cas-client.jar, I couldn't find 'edu.yale.its.tp.cas.client.filter.wrapRequest' class.

Do I have to access username like this or is there any way that I can get the username to the portlet from my uPortal.


Thanks in advance.


Thanks,
Asha

Access over 1 million songs - Yahoo! Music Unlimited.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to