Re: Acegi (Spring Security)

2007-09-19 Thread Ian Godman
The fix I came up with was to get the Authentication from my session class.

Ian

- Original Message 
From: Thies Edeling [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, 18 September, 2007 11:19:20 PM
Subject: Re: Acegi (Spring Security)

Did you manage to fix this ? I have the exact same symptom, user 
authenticates fine 
(org.acegisecurity.event.authentication.LoggerListener - Authentication 
event AuthenticationSuccessEvent: thies; details: null) but 
authentication is not set in the context.

Thies

Ian Godman wrote:
 Hi

 I am have a bit of a problem with Wicket and Acegi. I am not getting an 
 exception so there is no trace.

 What is happening is that once logged in the Authentication is sometimes not 
 set. I get it as follows:

 AuthenticationToken tkn = 
 SecurityContextHolder.getContext().getAuthentication() ;

 If I log in and I dont get the Authentication I can close the browser and 
 revisit the URL and I have the Authentication at the point the Index page 
 writes the user name but latter its only there some of the time.

 It appears to me that it is ether a session issue with Wicket or that some 
 where the thread local used by Acegi is not being updated by the listener 
 (not had that problem before) or that a different thread is calling my code.

 Because of the size and complexity of the application I can not post source 
 code.

 Does anyone have any experience with Wicket/Acegi or know how Wicket deals 
 with Acegi integration? I need ideas of where to look.

 Many thanks


 Ian




   ___ 
 Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
 http://uk.promotions.yahoo.com/forgood/environment.html
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

Re: Acegi (Spring Security)

2007-09-18 Thread Thies Edeling
Did you manage to fix this ? I have the exact same symptom, user 
authenticates fine 
(org.acegisecurity.event.authentication.LoggerListener - Authentication 
event AuthenticationSuccessEvent: thies; details: null) but 
authentication is not set in the context.


Thies

Ian Godman wrote:

Hi

I am have a bit of a problem with Wicket and Acegi. I am not getting an 
exception so there is no trace.

What is happening is that once logged in the Authentication is sometimes not 
set. I get it as follows:

AuthenticationToken tkn = 
SecurityContextHolder.getContext().getAuthentication() ;

If I log in and I dont get the Authentication I can close the browser and 
revisit the URL and I have the Authentication at the point the Index page 
writes the user name but latter its only there some of the time.

It appears to me that it is ether a session issue with Wicket or that some 
where the thread local used by Acegi is not being updated by the listener (not 
had that problem before) or that a different thread is calling my code.

Because of the size and complexity of the application I can not post source 
code.

Does anyone have any experience with Wicket/Acegi or know how Wicket deals with 
Acegi integration? I need ideas of where to look.

Many thanks


Ian




  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Acegi (Spring Security)

2007-09-15 Thread Erik van Oosten

Ian,

With this symptom I would guess that the Acegi filter is not installed 
on all URLs that the Wicket application is handling. It is not likely a 
Wicket problem as your code goes directly to Acegi's threadlocal.
If you're deploying to a clustered environment a lot of interesting 
session mechanics are active too. But that all depends on your environment.


Regards,
Erik.


Ian Godman wrote:

It appears to me that it is ether a session issue with Wicket or that some 
where the thread local used by Acegi is not being updated by the listener (not 
had that problem before) or that a different thread is calling my code.

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Acegi (Spring Security)

2007-09-14 Thread John Krasnay
On Fri, Sep 14, 2007 at 04:05:47PM +0200, Ian Godman wrote:
 Does anyone have any experience with Wicket/Acegi or know how Wicket deals 
 with Acegi integration? I need ideas of where to look.
 
 Ian

Can you post the Spring configuration for your Acegi beans?

jk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]