including the HttpServletRequest in the Credentials

Prabhu prabhu.subramanian at gmail.com
Wed Jul 5 14:29:16 EDT 2006


Thanks Andrew, Scott for your replies. It certainly helped me in saving some
time.

-Prabhu

On 7/5/06, Andrew Petro <apetro at unicon.net> wrote:
>
> Prabhu, Scott,
>
> In CAS 2, both PasswordHandlers and TrustHandlers could consider the
> HttpServletRequest in making their authentication determination.
>
> How to use CAS 2 Password and Trust handlers directly in CAS 3 is
> documented
> here:
>
> http://www.ja-sig.org/wiki/display/CAS/Using+CAS2+PasswordHandlers+in+CAS3
>
> The legacy credentials binder demonstrates binding the HttpServletRequest
> into the credentials.
>
> Andrew
>
> > -----Original Message-----
> > From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu]
> On
> > Behalf Of Scott Battaglia
> > Sent: Wednesday, July 05, 2006 6:58 AM
> > To: Yale CAS mailing list
> > Subject: Re: How to compile CAS source
> >
> > Prabhu,
> >
> > You need to extend the UsernamePasswordCredentials class i.e. (public
> > class MyCredentials extends UsernamePasswordCredentials) and add a
> > method to set the request object.
> >
> > Then create a CredentialsBinder class which will call the setRequest
> > method.  You'll then just merely need to change the configuration of the
> > cas-servlet.xml so that the authenticationViaForm action uses your
> > Credentials and CredentialsBinder class.
> >
> > The request object will then be available for you.
> >
> > -Scott
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
Prabhu
Mobile: (0) 98414 05819
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20060705/817c6b71/attachment.html


More information about the cas mailing list