Richard,
> Please could someone tell me how to get hold of the principal
object?
The CAS server representation of the Principal and the CAS client
abstraction for the authenticated user are typically different things.
In particular, the Yale Java CAS Client only understands the
authenticated user in terms of a userid String. It can cleverly wrap
the HttpServletRequest to give you convenient ways to get this String,
or you can get it out of the Session, but it's just a boring String.
The JA-SIG Java CAS Client is more modern and sophisticated and is more
prepared to parse a richer authentication representation from the CAS
server and to give you can abstraction for consuming aspects of the
Principal other than the user identifier.
[
Should something be in this session attribute as per the docs? (if
there should be, the filter doesn't seem to set it):
edu.yale.its.tp.cas.client.filter.receipt
]
Yes, the Yale Java CAS Client CASFilter in its latest version will set this session attribute.
Best wishes,
Andrew
Richard Gundersen wrote:
If anyone could help me on these points I'd be really
grateful. Also on my earlier email about Exceptions.
Been struggling through this for three days now with little to show for
it. I am very new to CAS, ACEGI, Maven etc so even if you think you are
pointing out the obvious, please do.
Any help very gratefully appreciated.
Regards
Richard
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Principal object
Date: Tue, 29 Apr 2008 17:26:32 +0100
Hi, I also have a couple of questions :)
1) Please could someone tell me how to get hold of the principal object?
I've written my own CredentialsToPrincipal resolver, and my own
Principal object, and I log in successfully.
I can't quite figure out where the principal is stored though. I'm
using the YaleFilter, but I can't see anything to do with the principal
in the source, or in the CAS server source either.
2) Should something be in this session attribute as per the docs? (if
there should be, the filter doesn't seem to set it):
edu.yale.its.tp.cas.client.filter.receipt
Many thanks
Richard
Date: Tue, 29 Apr 2008 08:27:28 -0400
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: does CAS support non-ascii netId?
Li,
CAS should support whatever you pass along. I would check if the
application server / JVM are both configured to support the characters.
-Scott
On Tue, Apr 29, 2008 at 3:29 AM,
Li Wei Nan < [EMAIL PROTECTED]>
wrote:
Hi Everyone,
We have some
problem when users use Chinese character as their netId.
I think it's a
config problem somewhere. Here's our environment:
- cas pages are
UTF-8
- data in
datasource are UTF-8 encoded
- linux env
is: LANG=en_US.UTF-8
- dataSource
config: <value>jdbc:postgresql://localhost:5432/edupass</value>
Does anyone has the similar problem and sovled it before?
Thanks,
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
--
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia
Messenger's gone Mobile! Get it now!
Get fish-slapping on Messenger Play
Now
_______________________________________________
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