How to return more than username after authentication?

t ray t_ray9505 at yahoo.com
Wed Feb 7 12:35:56 EST 2007


Indrit,
Thanks for your response. I have had to make the following changes-
- Subclass Principal (new class)
- Implement CredentialsToPrincipalResolver (new class)
- casServiceValidationSuccess.jsp (add new parameters)

I didn't have to make any changes to the other files you have mentioned. Maybe I am missing something? I also am not sure what changes you had to make to cas-servlet.xml and how that broke xml schema. Could you or someone please explain? I am afraid that I may not have done all changes and that will break something elsewhere...

Thanks,

Ray


----- Original Message ----
From: indrit Lavoro <indritselimilavoro at yahoo.it>
To: Yale CAS mailing list <cas at tp.its.yale.edu>
Sent: Wednesday, February 7, 2007 3:01:21 AM
Subject: Re: How to return more than username after authentication?

I have already done something like this but what I observed is that I breaked  the xml schema related to the 'http://www.yale.edu/tp/cas' namespace.  I made changes to the following files on the server side( that I remember ) :

- UsernamePasswordCredentials  (subclass)
- CredentialsBinder  (implement)
- SimplePrincipal (subclass)
- CredentialsToPrincipalResolver (implement)
- CasServlet.xml (changes to authenticationViaFormAction)
- casServiceValidationSuccess.jsp (add new parameters)

May be for the xml community is necessary to create an extending point to the related W3CSchema for the response's xml format.

Best,

Indrit





"Stephen A. Cochran" <stephen.a.cochran at dartmouth.edu> ha scritto:

On Feb 2, 2007, at 5:34 PM, t ray wrote:

> Is it possible (and advisable) to return than just the username 
> after successful login? I would like to be able to return a small 
> amount of user data apart from the name such that this extra 
> information is also available along with the user name.

Dartmouth has extended the standard CAS 2.0 XML response to include 
some non-standard attributes. This involves extending some of the 
classes in the server, as well as updating the clients to present 
these new fields to users.

The archives of this mailing list should contain a fairly detailed 
description of the design we chose.

Steve Cochran
Dartmouth College
_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas





Vinci i biglietti per FIFA World Cup in Germania!
_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070207/a99e7886/attachment.html 


More information about the cas mailing list