Hi Mark,

> Von: Mark <[email protected]>
> Betreff: [cas-user] Spring + CAS - show username on non-secured page
>
> I've got the following setup:
> - cas server
> - web app A
> - web app B
>
> I've got some secured pages on web app B, which when I try to visit, cas 
> forces me to log in if I'm not
> logged in already. This works as expected.
>
> But after I log in and I go back to web app A's (non-secured) front page, I 
> have a problem. I use Spring's > security:authentication tag to display the 
> username of the logged in user. In this scenario, it appears
> that web app A doesn't know that a user is logged in via cas ("anonymousUser" 
> is what's displayed).
> 
> How do I configure my webapp so that I can have web app A's non-secure pages 
> access and display the cas
> username?
>
> A similar, unanswered question on StackOverflow: 
> http://stackoverflow.com/questions/8270486/how-to-show-logged-in-user-details-on-non-secured-jsp-page-after-login-via-sprin

Maybe you've already come across it, but just in case: the CAS Gateway feature 
may be
helpful to you. See http://www.jasig.org/cas/client-integration/gateway .

We use this e.g. to display a login button on the non-secured main page only if 
the user is not already logged into CAS.

There's a (quite old) proposal to integrate support for CAS Gateway into Spring 
security, see https://jira.springsource.org/browse/SEC-977 , but it has not 
been done yet. Via this link you also
find information how to do this for the time being.

Cheers,
   Guido

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to