Do generate a PT, you need to request the AttributePrincipal object from the
request (i.e. final AttributePrincipal p = (AttributePrincipal)
request.getPrincipal()) and then call the p.getProxyTicketFor("service
identifier")On Wed, Jun 1, 2011 at 6:48 PM, Fernando Correa <[email protected]> wrote: > Anybody knows if there is a way to generate a PT to enter to a specific > resource in a casified application? > > My validate filter is configurated with a service like > http://server/webapp1, and I need to generate PTs to resources like > http://server/webapp2/jsp1.jsp?ticket=xxxxxxxx&argument1=value1&argument2=value2 > . > > ------------------------------ > *From:* Fernando Correa <[email protected]> > *To:* [email protected] > *Sent:* Tuesday, May 31, 2011 11:26 AM > *Subject:* Re: [cas-user] Proxy Ticket - Destination URL > > When I said "I build links like http://server/webapp2/jsp1.jsp, > http://server/webapp2/jsp2.jsp", I put them the generated ticket, like > http://server/webapp2/jsp1.jsp?ticket=xxxxxxxx > > Thanks in advance! > > ------------------------------ > *From:* Fernando Correa <[email protected]> > *To:* [email protected] > *Sent:* Sunday, May 29, 2011 6:23 PM > *Subject:* [cas-user] Proxy Ticket - Destination URL > > Hello everybody. > > I have a two webapps, webapp1 and webapp2. Both of them are casified. The > configurated services for them are http://server/webapp1 and > http://server/webapp2. > > webapp1 generates proxy tickets to access webapp2, and webapp2 has a lot of > JSPs. > > In webapp1, when I generate PTs, I build links like > http://server/webapp2/jsp1.jsp, http://server/webapp2/jsp2.jsp, etc. The > PTs work fine, but I always arrives to http://server/webapp2/ (the home > page). Is there a way to generate PTs pointing to specific resources in > webapp2? > > Thanks! > > -- > 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/cas-user > > > > > > -- > 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/cas-user > > -- 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/cas-user
