All you need to do is create a new class that extends UsernamePasswordCredentials and then configure it in the cas-servlet.xml for the AuthenticationViaForm action by adding the properties below:

<property
   name="formObjectClass"
   value="org.my.place.MyUsernamePasswordCredentials" />
<property
   name="formObjectName"
   value="credentials" />

For more information see the documentation:
http://static.springframework.org/spring-webflow/docs/1.0-rc4/api/org/springframework/webflow/action/FormAction.html

-Scott

On 10/6/06, Jennifer Yang <[EMAIL PROTECTED]> wrote:
Using custom UsernamePasswordCredentials sounds great.  How do I plug this in?  Is there some kind of factory that I can configure?

--Jennifer




On 10/5/06, Scott Battaglia <[EMAIL PROTECTED]> wrote:
If you wanted to you could store some information in a custom UsernamePasswordCredentials that has additional fields (we do it for certain scenarios).  You could also do the look up again depending on how expensive it is (if you use connection pooling the look up expense may be minimal).

-Scott

On 10/3/06, Jennifer Yang < [EMAIL PROTECTED]> wrote:
Scott,

That's great.  I can plug in our own.

One more question.  Our auth backend function actually returns a bunch of things, including principal.   Is there any way we can store the returned principal to be used by the CredentialsToPrincipalResolver so that we don't have to do the same lookup in both AuthenticationHandler and CredentialsToPrincipalResolver ?

--Jennifer

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




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




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



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

Reply via email to