moving this dicussion over to the user list.
On Wed, 12 Dec 2007, Jen Bourey wrote:
Hi Michael,
Sorry for the delay!
Basically I dropped a copy of the class linked from the wiki page (
http://www.ja-sig.org/wiki/display/PLT/Portlets+using+Proxy+CAS) into my
portal and redeployed. I haven't written up a cpd for the channel yet, so I
manually edited my target portlet to have the new classname, and added the
channel parameters mentioned on the wiki page (casProxyTicketPref and
casTargetService).
The CCasProxyPortletAdapter class gets a proxy ticket and adds it to the
userinfo map. The portlet can then retrieve this map out of the portlet
request.
Map userinfo = (Map) request.getAttribute("javax.portlet.userinfo");
String proxyTicket = (String) userinfo.get("casProxyTicket");
At this point, I needed to get a proxy ticket for another external service,
so I used the low-level Java code at
http://www.ja-sig.org/wiki/display/CASC/Using+the+basic+Java+CAS+Client+objectsto
get the proxy ticket I needed. Make sure to add the proxy callback
servlet to your portlet application. This last part could presumably have
been accomplished by using the method described in the Portlets using Proxy
CAS wiki page, but I wasn't sure where to get the code for the bean
mentioned.
Do you know which step is failing for your portlet?
- Jen
On Dec 6, 2007 4:52 PM, Irion, Michael <[EMAIL PROTECTED]> wrote:
Jen, would you outline the process you used to get it to work?
I'm trying to do this same procedure, but I'm not seeing the proxy
ticket passed in via prefs.
Michael
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jen Bourey
Sent: Wednesday, December 05, 2007 9:20 AM
To: [email protected]
Subject: Re: [uportal-dev] Portlets and CAS
Thanks Eric! I've now successfully gotten ESUP Portail's
CCasProxyPortletAdapter working in the Yale portal. It seems
to work quite well. I wasn't sure where the code for the cas
bean was, so I just used the low-level Java CAS objects to do
ticket validation by hand in the portlet. As to the key
naming issue, the code for CCasProxyPortletAdapter allows the
key name to be overridden via a channel parameter.
What do other people think of this approach? Is this
something we'd like to add to the uPortal codebase in the
near future?
- Jen
On Nov 28, 2007 3:50 PM, Eric Dalquist <
[EMAIL PROTECTED]> wrote:
So Pascal Aubry pointed out
http://www.ja-sig.org/wiki/display/PLT/Portlets+using+Proxy+CA
S which has a very good write-up on how they have done
exactly this. Their approach looks like passing the PGT in as
a portlet preference to portlets that declare the correct
preference name in their portlet.xml.
I'd like to get feedback on what people think of
passing the PGT to the portlet as a preference versus a user
attribute versus a request attribute. Also how should the
naming of the key be decided?
-Eric
Jen Bourey wrote:
Thanks!
- Jen
On Nov 27, 2007 4:16 PM, Eric Dalquist
<[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]> wrote:
The discussion was captures here:
http://www.ja-sig.org/issues/browse/UP-1873
-Eric
Jennifer Bourey wrote:
Hi all,
We had some discussion at the
unconference about proposed ways of
handling proxyCAS from
portlets. I have to admit that I don't
remember the entire discussion,
and I'm not sure we reached a firm
conclusion. Now that we're
presumably back from the conference /
holidays, could we maybe
continue that conversation on-list?
- Jen
---------------------------------
Jennifer Bourey
Technology and Planning
Yale University ITS
203.432.5718
--
You are currently subscribed to [email protected]
as: [EMAIL PROTECTED] To unsubscribe, change settings
or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev
--
You are currently subscribed to [email protected] as:
[EMAIL PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev
--
You are currently subscribed to [email protected] as: [EMAIL
PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev
--
You are currently subscribed to [email protected] as: [EMAIL
PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev