You could use Spring Security API for this.
If your service client is Spring based you can get UserDetails Object from the 
current Context and find there username,Attributes, etc.. for the logout 
feature just reference a link to /logout and the service will automatically log 
out the client. Check single sign out for that purpose.

Idan

----- Reply message -----
From: "Andres" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [cas-user] Logged user name and logout links in jsp
Date: Fri, Apr 11, 2014 9:21 AM

Hi, I wanted to show the logged user full name at the page header (top.jsp) and 
a logout link, but only when the user is logged.

How can I check if the user is logged in and his attributes in the jsp?

Thank you very much.
--
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
This e-mail and the information it contains may be privileged and/or 
confidential. It is intended solely for the use of the named recipient(s). If 
you are not the intended recipient you may not disclose, copy, distribute or 
retain any part of this message or attachments. If you have received this 
e-mail in error please notify the sender immediately [by clicking 'Reply'] and 
delete this e-mail.

-- 
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