Rob Moore wrote:
I have no problem with it, but how do I get User from SecureContext?
((UserDetails)SecureContextUtils.getSecureContext().getAuthentication().getPrincipal()).getUsername();
---
This SF.net email is sponsored by Microsoft Mobile &
Hi, Ben,
I have no problem with it, but how do I get User from SecureContext?
Thanks,
Rob
Ben Alex wrote:
Hi Rob
I did consider this, but I felt users wanting a username would have been
using User.getUsername(). I personally use .toString() for debugging,
and find the extra details helpful. Any c
Rob Moore wrote:
I think a bug has been introduced in the 0.8.1 enhancement to
User.toString(). Previously, calling
SecureContext.getAuthentication().getName() returned the usernname.
Now it seems to return the result of User.toString().
Here's an example of what I'm seeing on the getName() cal
I think a bug has been introduced in the 0.8.1 enhancement to
User.toString(). Previously, calling
SecureContext.getAuthentication().getName() returned the usernname. Now
it seems to return the result of User.toString().
Here's an example of what I'm seeing on the getName() call:
[EMAIL PROTECT
Hi Mark
[EMAIL PROTECTED] wrote:
Ben,
I have been a Spring user for sometime now and am starting to investigate
Acegi Security. I am having trouble replying to the developer-list
subscription so I thought that I would email you directly if you do not
mind this once. My reply to the subscription k
Hi Andreas
> I'm using Acegi Security 0.5 with a Hibernate based
> AuthenticationDao implementation. I'd like to save "date of
> last login" and "nr. of logins"
> in a user's profile.
>
> Where do I best plug in to catch this information? In the
> AuthenticationDao when preparing the User obje