If you put it in the validation filter its passed as part of the validation request (and validation will fail if the renew=true wasn't passed as part of the authentication).
Cheers, Scott On Mon, Jun 6, 2011 at 5:47 PM, Fernando Correa <[email protected]> wrote: > I think the solution for my need is redirectAfterValidation in false. > > With this option, I can go to the specific resource that I need with the > ticket in the URL, and I arrived authenticated to these resource. > > BTW, I have a doubt with renew parameter. Which is the difference between > putting it in the authentication filter and the validation filter? > > ------------------------------ > *From:* Fernando Correa <[email protected]> > *To:* "[email protected]" <[email protected]> > *Sent:* Saturday, June 4, 2011 12:23 PM > > *Subject:* Re: [cas-user] Proxy Ticket - Destination URL > > Hi Scott. > > I'm doing the PT like you said, but I can't get the behavior that I want. > > webapp2 validate filter is configurated por service > http://localhost:8081/webapp2 > > webapp1 generates PTs for differents resources in webapp2, like > http://localhost:8081/webapp2/jsp1.jsp?action=claim, > http://localhost:8081/webapp2/jsp1.jsp?action=release, etc. > > I generate the PT like you said, configurated for service > http://localhost:8081/webapp2. After that, I build the link like > http://localhost:8081/webapp2/jsp1.jsp?action=claim&ticket=the_recently_created_PT > . > > Taking that link, I arrived authenticated to webapp2, but in the homepage, > and not in jsp1.jsp with the query string parameters that I need. > > Obviouslly, if I generate the ticket with > http://localhost:8081/webapp2/jsp1.jsp?action=claim as the service, > webapp2 rejects my PT because is different from the service configurated in > web.xml. > > I hope there is a solution for my need! > > Thanks in advance. > > ------------------------------ > *From:* Scott Battaglia <[email protected]> > > *To:* [email protected] > *Sent:* Friday, June 3, 2011 11:25 PM > *Subject:* Re: [cas-user] Proxy Ticket - Destination URL > > 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 > > > > > > -- > 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
