How to return more than username after authentication?
Stephen A. Cochran
stephen.a.cochran at Dartmouth.EDU
Wed Feb 7 14:03:31 EST 2007
On Feb 7, 2007, at 12:35 PM, t ray wrote:
> 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...
Those should be the only three files you would HAVE to modify to get
some additional attributes. I happened to modify some authhandlers as
well.
I believe Indrit is talking about breaking the XML namespace for the
CAS 2.0 protocol, ie what is sent in response to a serviceValidate
call. The schema is set, and we added extra elements. This is
technically breaking the XML namespace, but it still works.
I'm just happy that 3.1 will include a way to extend the responses by
default.
Steve
More information about the cas
mailing list