Hello doahh,

Have you tried the gateway feature of the CAS 2.0 protocol ?

http://www.ja-sig.org/products/cas/client/gateway/index.html

It will redirect user browser to the CAS authentication server without 
displaying login page. 
If TGC is found then browser is redirected to the service (Webapp2) with the 
service ticket.
If the user was not authenticated, the browser is redirected to the service 
with a parameter avoiding gateway looping.

This might help you.


Mathieu Rousselle

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de doahh
Envoyé : jeudi 26 juin 2008 17:24
À : [email protected]
Objet : How to check if I am logged into CAS or not


I have been looking for a solution to my problem for a couple of weeks now
and having asked on a couple of other forums no-one seems to have any ideas
at all (there are views but no replies to my posts).

I am using CAS-3.2.1 with Spring-security-2.0.2 and cas-client-core-3.1.3.

I can log into CAS and access the protected pages in WebApp1. when I go to
WebApp2, as long as I access a page that is secured by Spring-security then
everything is fine. However, if I access an unprotected page before
accessing a protected one, WebApp2 does not know I am logged in and so
cannot show any items on the page that are secured by spring-security.

Is there a way for me to ask CAS directly from WebApp2 whether or not I am
logged in without me having to go through the log in process? 

I hope you can help because I am completely stuck.
-- 
View this message in context: 
http://www.nabble.com/How-to-check-if-I-am-logged-into-CAS-or-not-tp18136646p18136646.html
Sent from the CAS Users mailing list archive at Nabble.com.

_______________________________________________
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