[cas-dev] returning custom NetID

Scott Battaglia scott.battaglia at gmail.com
Mon Oct 9 22:18:49 EDT 2006


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 <jyoonyang at gmail.com> 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 <scott.battaglia at gmail.com> 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 < jyoonyang at gmail.com> 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
> > > cas-dev at tp.its.yale.edu
> > > http://tp.its.yale.edu/mailman/listinfo/cas-dev
> > >
> > >
> > >
> >
> > _______________________________________________
> > cas-dev mailing list
> > cas-dev at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas-dev
> >
> >
> >
>
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20061009/6fc8095c/attachment.html


More information about the cas-dev mailing list