I don't think so.  You are basically working with Spring's application context. 
 The application event however does have basic information like remote ip, user 
name etc.  

Authentication authentication = authEvent.getAuthentication();
WebAuthenticationDetails details = (WebAuthenticationDetails) 
authentication.getDetails();

// Now you can use these objects
// authentication.getName()
// details.getRemoteAddress()

[EMAIL PROTECTED] wrote:        v\:* {behavior:url(#default#VML);} o\:* 
{behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape 
{behavior:url(#default#VML);}     st1\:*{behavior:url(#default#ieooui) }        
   There is just one problem in using the listener:
  I think is not possible to access to the HttpSession objectÂ….is there a way 
to do it?
   
      
---------------------------------
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL 
PROTECTED]
 Sent: 3 gennaio 2007 16.56
 To: acegisecurity-developer@lists.sourceforge.net
 Subject: Re: [Acegisecurity-developer] how receive notificationofauthentionok
  
   
  J
   
      
---------------------------------
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Faerman
 Sent: 3 gennaio 2007 16.47
 To: acegisecurity-developer@lists.sourceforge.net
 Subject: Re: [Acegisecurity-developer] how receive notification ofauthentionok
  
   
  In My Opinion. You can also see IMHO, In My Humble Opinion.
    On 1/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
      Thanks a lotÂ…. What does mean IMO? 
   
      
---------------------------------
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manoj Sahu
 Sent: 3 gennaio 2007 16.32
 To: acegisecurity-developer@lists.sourceforge.net
 Subject: Re: [Acegisecurity-developer] how receive notification ofauthention ok
  
     
  You can override as follows:
 
 public class CustomAuthenticationProcessingFilter extends 
AuthenticationProcessingFilter {
 
     @Override
     protected void onSuccessfulAuthentication(HttpServletRequest req, 
HttpServletResponse resp, Authentication auth) throws IOException {
         super.onSuccessfulAuthentication(req, resp, auth);
         // Do your logic here
     }
 ...
 
 Alternately, you can also write an application listener and look for a 
perticular type of application event :
 if (event instanceof AuthenticationSuccessEvent)
 
 IMO, former is a better option.
 
 [EMAIL PROTECTED] wrote:
             I need to be notified when authentication is   executed 
successfully because I need to invoke a specific command in my   application. 
How can I do with Acegi 3 (1.0.3)?
   
       
   
      Thanks in advance
   
      Mario
   
                 
   
                 
   
                 
   
                 
   
           
  
      This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you have received 
it in error, please notify the sender immediately and delete the original. Any 
other use of the email by you is prohibited.
  
  
  -------------------------------------------------------------------------
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT & business topics through brief surveys - and earn cash
 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
 
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer 
   
   __________________________________________________
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
  
  
        This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you have received 
it in error, please notify the sender immediately and delete the original. Any 
other use of the email by you is prohibited. 
  
  
  
    
 -------------------------------------------------------------------------
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your 
 opinions on IT & business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
 
 _______________________________________________
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer 
  
   
    This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you have received 
it in error, please notify the sender immediately and delete the original. Any 
other use of the email by you is prohibited.
  
  
  
This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to