Ok let me try to explain my scenario in detail: I have custom filter extending AuthenticationProcessingFilter. So as user tries to logon i call attemptAuthentication method of custome class. After user is authenticated SUCCESSFULLY i have to:
1- made extra checks based upon roles assigned to user. and have to send user back to login page. 2- Need to set lots of extra info in session and logg events i DB So as soon as user was authenticated successfully control transfers to targetUrl defined without extra checks i need. This is main problem. Now i override the onSuccessfullAuthentication method and put all extra role checking and other stuff in it. It works. Howeever if if find some problem in role i have to send user back to login page now with custom error messages. Peter Stavrinides wrote: > >> Is there any configuration in acegi/spring to wait until request fwded >> manually >> or adding some delay. > Unfortunately I can't help you, you have not given sufficient information, > please post your code and explain clearly what you are trying to do. If > this is a spring configuration issue then you are more likely to get a > better answer by posting to the appropriate list. > > Kind regards, > Peter > > > ----- Original Message ----- > From: "aahsanJamshaid" <ahsan.jamsh...@techno-soft.com> > To: users@tapestry.apache.org > Sent: Friday, 8 May, 2009 07:58:17 GMT +02:00 Athens, Beirut, Bucharest, > Istanbul > Subject: Re: Pause after successfull authentication > > > First sorry peter for late reply. Actually i have done almost same by > adding > dummy loop but that work randomly. Sometime it works and sometime not. Is > there any configuration in acegi/spring to wait until request fwded > manually > or adding some delay. > > thanks > > > > > > Peter Stavrinides wrote: >> >> How about: >> >> while(taskInProgress){ >> Thread.sleep(SLEEP_INTERVAL); >> } >> >> >> ----- Original Message ----- >> From: "aahsanJamshaid" <ahsan.jamsh...@techno-soft.com> >> To: users@tapestry.apache.org >> Sent: Friday, 27 February, 2009 15:45:35 GMT +02:00 Athens, Beirut, >> Bucharest, Istanbul >> Subject: Pause after successfull authentication >> >> >> I have a application with acegi configured through spring. It uses >> Spring, >> Tapestry, Hivemodule. I do manul authentication in tapestry java file by >> ProcessingFilterClassObject.attemptAuthentication( username, password ). >> >> Everything works good, and after successfull authentication user is >> redirected to URL defined for "defaultTargetUrl" property. >> >> After successfull authentication i need to do some processing and set the >> things in session before control goes to "defaultTargetUrl". Is it >> possible >> to hold to control and release it manually after my processing is >> completed. >> >> -- >> View this message in context: >> http://n2.nabble.com/Pause-after-successfull-authentication-tp2395702p2395702.html >> Sent from the Tapestry Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > -- > View this message in context: > http://n2.nabble.com/Pause-after-successfull-authentication-tp2395702p2843603.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://n2.nabble.com/Pause-after-successfull-authentication-tp2395702p2844516.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org