Custom types and select lists

2010-04-19 Thread Lance Hill
nstanceof Campus) { return ((Campus)o).getId().toString(); } return ""; } } Suggestions, corrections, pointers, or links to examples/tutorials of how to do this properly would be greatly appreciated. Regards, Lance Hill

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
z.len...@googlemail.com] Sent: Wednesday, March 17, 2010 11:52 AM To: Struts Users Mailing List Subject: Re: SecurityContextHolder.getContext().getAuthentication() returning null 2010/3/17 Lance Hill : > Any hints about why SecurityContextHolder.getContext().getAuthentication() > would re

SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
I am trying to get access to the currently logged in user, but when I call SecurityContextHolder.getContext().getAuthentication(), the Authentication returned is null. I am assuming the user is logged in since they have access to the secure page I am testing, but I don't know how to tell for sure s

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-17 Thread Lance Hill
authenticated user from Spring Security for use in an Action Try: SecurityContextHolder.getContext().getAuthentication().getPrincipal() -Original Message- From: Lance Hill [mailto:la...@baldhead.com] Sent: Tuesday, March 16, 2010 5:15 PM To: 'Struts Users Mailing List' Subject: G

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I am using spring-security 2.0.4. -Wes On Tue, Mar 16, 2010 at 5:42 PM, Lance Hill wrote: > I have Spring Security set up to use CasAutheticationProvider to provide a > UserDetails object. > > I did find an example that uses the SecurityContext to obtain an > Authentication

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
authenticated user from Spring Security for use in an Action What mechanism are you using to handle authentication/authorization? -Wes On Tue, Mar 16, 2010 at 5:14 PM, Lance Hill wrote: > I need to access information about the currently logged in user. I don't > think putting the us

Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I need to access information about the currently logged in user. I don't think putting the user into the session during login is how it is supposed to be done, but I have not found examples of how to get access to the current user from Spring/Spring Security. Can someone please provide a link or br

Struts + Spring 3

2010-03-09 Thread Lance Hill
struts-spring-plugin 2.1.8 and when I started to implement spring security, I used version 3 which requires spring version 3, but the plugin relies on spring 2.5.6. Thank you, Lance Hill

Single Sign On And Spring Security

2010-02-25 Thread Lance Hill
Wordpress site. Thank you, Lance Hill