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
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
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
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
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
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
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-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
Wordpress
site.
Thank you,
Lance Hill
9 matches
Mail list logo