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 <[email protected]>:
> 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 <[email protected]>:
>
>> 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 <[email protected]>:
>>
>>> On Wed, 05 Nov 2014 11:12:05 +0100
>>> Federico Paparoni <[email protected]> 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
>>> <[email protected]>
>>>
>>> --
>>> 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
>>>
>>>
>>
>
>
--
Federico Paparoni
Blog -- http://fpaparoni.wordpress.com/
Twitter -- http://twitter.com/fpaparoni
--
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