I am still not sure how this works,

( PS: I am using CAS 3.1RC4 )

1. Principal:
I have looked at UsernamePasswordCredentialsToPrincipalResolver as an example. It creates and return the Principal as
..
return new SimplePrincipal(usernamePasswordCredentials.getUsername());
..

So, do I need to create the "attributes" map and pass to the Principal's constructor?

eg
return new MyComplexPrincipal(usernamePasswordCrednetials.getUsername (), myAttributesMapWithAdditionalStuff );

myAttributesMapWithAdditionalStuff is my Map that contain informations like email, first/last name ,etc...




2. I am trying to customize casGenericSuccess.jsp, how do I retrieve information from MyComplexPrincipal?



Thanks



On Aug 2, 2007, at 5:56 AM, Scott Battaglia wrote:

In the latest CAS release, the Principal has a new property called "attributes" which is map. There are implementations that obtain attributes from the JA-SIG PersonDirectory API and populate that map. CAS 3.1 will return those attributes via the SAML response (though you'll need to use it in conjunction with the Services Management tool to "release" the attributes to the client applications).

In Subversion, there should be a SAMLTicketValidator that will parse the SAML response. Note that its not 100% compatible with the current CAS Server release because the protocol states that the artifact resolution request should come over SOAP (the TicketValidator in HEAD merely sends it as a HTTP Request parameter). Its not a very difficult change to make though. I just haven't had time yet.

-Scott

On 8/1/07, Barrow Kwan <[EMAIL PROTECTED]> wrote:
this question was asked back to april and Scott said :

You just need to create a CredentialsToPrincipalResolver that returns
attributes and then use the /samlValidate url instead of / serviceValidate (and an appropriate TicketValidator). The CAS Client for Java 3.1- m1 has a
SamlTicketValidator you can use as an example.

-Scott


I still stuck with the Saml, did someone has a working example we can reference?


thanks



Barrow Kwan
ThoughtWorks Inc
410 Townsend St, 4th Floor
San Francisco, CA 94107
USA
(415)869-3103




_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas





--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Barrow Kwan
ThoughtWorks Inc
410 Townsend St, 4th Floor
San Francisco, CA 94107
USA
(415)869-3103



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to