Re: [Acegisecurity-developer] Re: Acegi Security - new release 0.8.1

2005-03-23 Thread Ben Alex
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 &

[Acegisecurity-developer] Re: Acegi Security - new release 0.8.1

2005-03-23 Thread Rob Moore
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

Re: [Acegisecurity-developer] Re: Acegi Security - new release 0.8.1

2005-03-23 Thread Ben Alex
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

[Acegisecurity-developer] Re: Acegi Security - new release 0.8.1

2005-03-23 Thread Rob Moore
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

[Acegisecurity-developer] Re: Acegi Security

2004-07-13 Thread Ben Alex
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

[Acegisecurity-developer] RE: Acegi Security and "last login" user info

2004-05-06 Thread Ben Alex
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