Hi, You can use the SAML endpoint, but the new /p3 endpoint is meant to avoid the use of SAML and return the user atributes.
Sure it works by testing manually: http://host/yourcas/p3/serviceValidate?ticket=ST-xxx&service=yyy? Best regards, Jérôme LELEU Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org 2014-11-05 14:50 GMT+01:00 Federico Paparoni <federico.papar...@gmail.com>: > Hi Jérôme, > > I haven't defined/modified anything on the CAS Server. The validation > filter on the webapp is defined so > > <filter> > <filter-name>CAS Validation Filter</filter-name> > > <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> > <init-param> > <param-name>casServerUrlPrefix</param-name> > <param-value>https://localhost:8443/custom-cas</param-value> > </init-param> > <init-param> > <param-name>service</param-name> > <param-value>https://localhost:8443/webappA/index.jsp > </param-value> > </init-param> > </filter> > > Same result using p3 url. > Maybe I have to enable something in CAS? SAML as suggested by Alberto? > > -- > Federico Paparoni > > 2014-11-05 12:07 GMT+01:00 Federico Paparoni <federico.papar...@gmail.com> > : > >> Hi Jérôme, >> >> I haven't defined/modified anything on the CAS Server. The validation >> filter on the webapp is defined so >> >> <filter> >> <filter-name>CAS Validation Filter</filter-name> >> >> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> >> <init-param> >> <param-name>casServerUrlPrefix</param-name> >> <param-value>https://localhost:8443/custom-cas</param-value> >> </init-param> >> <init-param> >> <param-name>service</param-name> >> <param-value>https://localhost:8443/webappA/index.jsp >> </param-value> >> </init-param> >> </filter> >> >> -- >> Federico Paparoni >> >> >> >> 2014-11-05 12:01 GMT+01:00 Jérôme LELEU <lel...@gmail.com>: >> >>> Hi, >>> >>> What's the url of the defined endpoint for the service ticket validator? >>> Did you use the /p3 url? >>> >>> Thanks. >>> Best regards, >>> >>> >>> Jérôme LELEU >>> Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj >>> Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org >>> >>> 2014-11-05 11:42 GMT+01:00 Alberto Cabello Sánchez <albe...@unex.es>: >>> >>>> On Wed, 05 Nov 2014 11:12:05 +0100 >>>> Federico Paparoni <federico.papar...@gmail.com> wrote: >>>> >>>> > Map attributes = principal.getAttributes(); >>>> > >>>> > Iterator attributeNames = attributes.keySet().iterator(); >>>> > for (; attributeNames.hasNext();) { >>>> > String attributeName = (String) attributeNames.next(); >>>> > Object attributeValue = attributes.get(attributeName); >>>> > out.println("attributeName:"+attributeName+" >>>> > attributeValue:"+(String)attributeValue); >>>> > } >>>> > >>>> > but the output is only the username. I think that in default >>>> configuration >>>> > it should show the attributes defined in a static map but it doesn't >>>> work. >>>> > Is there something I have to enable? >>>> >>>> I did roughly the same, but only got that code working after enabling >>>> SAML >>>> attribute release. >>>> >>>> -- >>>> Alberto Cabello Sánchez >>>> <albe...@unex.es> >>>> >>>> -- >>>> You are currently subscribed to cas-user@lists.jasig.org as: >>>> lel...@gmail.com >>>> To unsubscribe, change settings or access archives, see >>>> http://www.ja-sig.org/wiki/display/JSG/cas-user >>>> >>>> >>> >> >> > > > -- > Federico Paparoni > > Blog -- http://fpaparoni.wordpress.com/ > Twitter -- http://twitter.com/fpaparoni > > > > -- > You are currently subscribed to cas-user@lists.jasig.org as: lel...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user