Problem with CAS-Service-Response - Using ACEGI-SECURITY
Stefan Dürr
duerr at elc.tu-darmstadt.de
Tue Mar 4 09:45:51 EST 2008
Hi,
I am writing a test-application with Java+Acegi. There are some public
pages and some secured pages. When the user tries to access one of the
secured pages, he will be redirected to CAS-Login. After successful
login he is redirected to this page again. This works really fine.
Now my problem: We defined some additional user-attributes in the
CAS-Server (like e-mail adress etc.), which are sent with the
CAS-Service-Response after a successful login and which I would like to
use in my Acegi-Application.
I have been trying very long now to print this response with the
Acegi-Framework, but it does not work. I read some instructions now and
nearly all threads about this topic in the spring- and acegi-forum and
this mailing-list, but i can't find anything about printing the
CAS-Service-Response with my Acegi-Application. As Acegi works with
Java-Beans, is it possible that I must create a special bean, which
stores the Service-Response? Or does another bean, like
CasAuthenticvationProvider, already store the response?
A strange thing is, that I can see the response in my browser, when I do
these steps (CAS-Server: https://localhost; Secured-Page:
https://localhost/testSpringAcegiCasTomcat/secure_irgendwas.jsp):
1. Access this with my Browser:
https://localhost/proxy?pgt=TGT-1-AsDFUJOLU1wwbka4nLzXdR3UWxY3UhNb7W0-50&service=https://localhost/testSpringAcegiCasTomcat/secure_irgendwas.jsp
this shows me a new Service-Ticket:
ST-13-iVqAlqSclCCdgMtASg07Cu75ETj9NN0pGPF-20
2. Access this with my Browser:
https://localhost/serviceValidate?ticket=ST-13-iVqAlqSclCCdgMtASg07Cu75ETj9NN0pGPF-20&service=https://localhost/testSpringAcegiCasTomcat/secure_irgendwas.jsp
this shows me all the attributes, that we defined in our CAS-Server. The
HTML-Source shows the whole response with XML-Tags
This is really strange, because I can't see any possibility, to acces
this response by using the acegi-beans.
I am happy about all hints!!
Regards Stefan
More information about the cas
mailing list