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 <[EMAIL PROTECTED]> wrote:

Anyone?

Thanks.

----- Original Message ----
From: t ray <[EMAIL PROTECTED]>
To: CAS Mailing List <[email protected]>
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
[email protected]
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
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas


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

Reply via email to