Modifying username inside AuthenticationHandler..
Scott Battaglia
scott.battaglia at gmail.com
Wed Feb 21 23:17:58 EST 2007
You should NOT reset the username in the Credentials class unless absolutely
necessary (it will work but then that change is propagated everywhere and
you lose the original supplied username). Your
CredentialsToPrincipalResolver should be able to map the supplied username
to the username that you want.
-Scott
On 2/21/07, tedzo <tedzo2003 at yahoo.com> wrote:
>
> Anyone?
>
> Thanks.
>
> ----- Original Message ----
> From: t ray <t_ray9505 at yahoo.com>
> To: CAS Mailing List <cas at tp.its.yale.edu>
> Sent: Tuesday, February 20, 2007 4:34:35 PM
> Subject: Modifying username inside AuthenticationHandler..
>
> I need to modify the username to something other than what the user types
> in so that within my app when I query the name from the session, I get the
> modified value. I was able to do this quite easily by just setting the
> username to whatever I need it to be within my AuthenticationHandler class
> (authenticate() method). However, I read another thread that stated both
> AuthenticationHandler and CredentialsToPricipalResolver need to be modified
> (http://tp.its.yale.edu/pipermail/cas/2006-March/002404.html). I don't see
> the need to modify CredentialsToPrincipalResolver. Am I missing something?
>
> Thanks,
>
> Ray.
>
> ------------------------------
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-->to find your fit.
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
> ------------------------------
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0A>to find your fit.
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070221/ae5785cc/attachment.html
More information about the cas
mailing list