Author Login
Post Reply
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 object and grab the UserDetails from there. I am not sure how
to get access to the populated SecurityContext since
SecurityContextHolder.getContext() is returning an empty SecurityContext and
I am not sure if that is the best way to access the user.
-----Original Message-----
From: Wes Wannemacher [mailto:wesw@(protected)]
Sent: Tuesday, March 16, 2010 5:16 PM
To: Struts Users Mailing List
Subject: Re: Getting the 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 <lance@(protected):
> 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 brief example of the best practice?
>
>
> Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)