I just realized did you authorize the service in the Services Management
tool to see the attributes?


On Thu, Sep 27, 2012 at 1:47 PM, dsilvia <daniel.c.sil...@gmail.com> wrote:

> I have been researching why I can not see the attributes in my test
> application I created from url
> https://wiki.jasig.org/display/CASC/Saml11TicketValidationFilter+Example I
> came across an issue.
>
>
> When the class Saml10SuccessResponseView runs the line below:
> "final Authentication authentication =
> assertion.getChainedAuthentications().get(0);"
>
> an authentication class gets created. However, the Principal does not get
> the attributes associated with it. The authentication class gets the
> attributes.
>
> When the code runs this line "if
> (!authentication.getPrincipal().getAttributes().isEmpty() || isRemembered)
> ", and you haven't configured RememberMe,  the attributes never get picked
> up in the SAMLStatement that is create when "if
> (!authentication.getPrincipal().getAttributes().isEmpty() || isRemembered)
> "
> is executed. I changed the code to use "if
> (!authentication.getAttributes().isEmpty() || isRemembered) " which
> appearently worked, I am able to see my attributes in the example
> application in the url
> https://wiki.jasig.org/display/CASC/Saml11TicketValidationFilter+Example.
>
> Maybe I am missing something, but when I make the modification, I am able
> to
> see the attributes in the SAML response and in the example jsp.
>
> If I am missing something, can someone please let me know where I am going
> wrong.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://jasig.275507.n4.nabble.com/Issue-with-setting-Principal-Attribues-in-Saml10SuccessResponseView-using-SAML11TicketValidationFiltr-tp4656397.html
> Sent from the CAS Developers mailing list archive at Nabble.com.
>
> --
> You are currently subscribed to cas-dev@lists.jasig.org as:
> scott.battag...@gmail.com
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>

-- 
You are currently subscribed to cas-dev@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-dev

Reply via email to