Hello Pascal,

It seems to be the same in version 5.2 (documentation apereo 
<https://apereo.github.io/cas/5.0.x/protocol/CAS-Protocol-Specification.html#25-servicevalidate-cas-20>
)
But my application is only a client and *don't use a proxy*. So I didn't 
implement a proxy callback.

Does it mean that I can't receive the proxyGrantingTicket tag ?
And so I can't retrieve my attributes ?

thank you for your help
Sebastien


Le vendredi 26 janvier 2018 11:48:31 UTC+1, Pascal Rigaux a écrit :
>
> Hi, 
>
> You won't get PGTIOU unless you pass pgtUrl. 
>
> Cf https://wiki.jasig.org/display/CAS/Proxy+CAS+Walkthrough 
>
> On 25/01/2018 16:22, Sébastien Ragons wrote: 
> > Hello, 
> > 
> > Thedocumentation of CAS tells that the response of <
> https://apereo.github.io/cas/development/protocol/CAS-Protocol-Specification.html#252-response>serviceValidate
>  
> <
> https://apereo.github.io/cas/development/protocol/CAS-Protocol-Specification.html#252-response>
>  
> is like this example: 
> > 
> >     <cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas";> 
> >       <cas:authenticationSuccess> 
> >       <cas:user>username</cas:user> 
> >     
>   <cas:proxyGrantingTicket>PGTIOU-84678-8a9d...</cas:proxyGrantingTicket> 
> >       </cas:authenticationSuccess> 
> >     </cas:serviceResponse> 
> > 
> > 
> > 
> > On my side i never receive the tag *proxyGrantingTicket* but only that 
> response: 
> > 
> >     <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> 
> >          <cas:authenticationSuccess> 
> >              <cas:user>sebastien</cas:user> 
> >              </cas:authenticationSuccess> 
> >     </cas:serviceResponse> 
> > 
> > 
> > 
> > 
> > I use a spring security client with this ticket validator: 
> > 
> > @Bean 
> > public TicketValidator ticketValidator() { 
> > Cas20ServiceTicketValidator ticketValidator = new 
> Cas20ServiceTicketValidator("https://localhost:8443/cas/";); 
> > ticketValidator.setProxyGrantingTicketStorage(pgtStorage); 
> > return ticketValidator; 
> > } 
> > 
> > I have the same probleme when I use Cas30ServiceTicketValidator. 
> > 
> > 
> > 
> > *My problem is that i can't get the attributs in the response * 
> > because Cas30ServiceTicketValidator don't treat it if there is no ticket 
> in the response as you can see in 
> > the code of org.jasig.cas.client.validation.Cas20ServiceTicketValidator 
> (github link <
> https://github.com/apereo/java-cas-client/blob/970a0f5db9a2cc96704ad3a5043994dc8bcfe212/cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas20ServiceTicketValidator.java>)
>  
>
> > 
> >      protected final Assertion parseResponseFromServer(final String 
> response) throws TicketValidationException { 
> >           ................     ... 
> > 
> > *  if (CommonUtils.isNotBlank(proxyGrantingTicket)) {* 
> > *        final AttributePrincipal attributePrincipal = new 
> AttributePrincipalImpl(principal, attributes,* 
> > *                    proxyGrantingTicket, this.proxyRetriever);* 
> > *            assertion = new AssertionImpl(attributePrincipal);* 
> > *        } else {* 
> > *            assertion = new AssertionImpl(new 
> AttributePrincipalImpl(principal, attributes));* 
> > *        }* 
> > 
> >         ............ 
> >      } 
> > 
> > 
> > 
> > Thank you for your help 
> > Sébastien 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > - Website: https://apereo.github.io/cas 
> > - Gitter Chatroom: https://gitter.im/apereo/cas 
> > - List Guidelines: https://goo.gl/1VRrw7 
> > - Contributions: https://goo.gl/mh7qDG 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "CAS Community" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:> <mailto:
> [email protected] <javascript:>>. 
> > To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/6bdc018b-c9c2-4e66-97b0-0b81efde78e6%40apereo.org
>  
> <
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/6bdc018b-c9c2-4e66-97b0-0b81efde78e6%40apereo.org?utm_medium=email&utm_source=footer>.
>  
>
>
>
> -- 
> Pascal Rigaux 
>
> Expert en développement et déploiement d'applications 
> DSIUN-SAS (service applications et services numériques) 
> Université Paris 1 Panthéon-Sorbonne  -  Centre Pierre Mendès France (PMF) 
> B 407 - 90, rue de Tolbiac -  75634 PARIS CEDEX 13 - FRANCE 
> Tél : 01 44 07 86 59 
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/5b394454-ee9a-43cb-9f4e-afc7db5a9bae%40apereo.org.

Reply via email to