Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-07 Thread Michael Gerzabek
ouch, sorry! I don't have the time now to dig deeper but will do tomorrow .. Am 07/05/2010 07:00, schrieb Nicolas Bouillon: Did you tried that ? It doesn't work, because TSS pass this value to the SystemWideSaltSource class from spring add calls the following afterPropertiesSet method :

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-07 Thread Nicolas Bouillon
Oups, sorry i had made a mistake when trying this way. I actually worked. public static void contributeServiceOverride( MappedConfigurationClass, Object configuration) { configuration.add(SaltSourceService.class, new SaltSourceService() { public Object

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-07 Thread Michael Gerzabek
So finally it's fine! I'll put your code into the 'official' documentation .. Thank you Am 07/05/2010 10:55, schrieb Nicolas Bouillon: Oups, sorry i had made a mistake when trying this way. I actually worked. public static void contributeServiceOverride(

[T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Nicolas Bouillon
Hi, I got a problem using tapestry-spring-security ( http://www.localhost.nu/java/tapestry-spring-security/ ) I have to override the SaltSourceService because my password database doesn't use any Salt. I have added this code to my AppModule : public static void contributeAlias(

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Robin Komiwes
Not sure to really understand what your problem is , but have you tried service override? On Thu, May 6, 2010 at 11:02 AM, Nicolas Bouillon nico...@bouil.org wrote: Hi, I got a problem using tapestry-spring-security ( http://www.localhost.nu/java/tapestry-spring-security/ ) I have to

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Nicolas Bouillon
Yes, I've tried using contributeServiceOverride and this way it never works. The problem is that the SecurityModule create itself a SaltSourceService it needs after for other service initialisation. I need to create the service first, then the SecurityModule fails to register its service, and

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Michael Gerzabek
I'm not 100% sure here but think you have to override the SSS. In your AppModule write something like public static void contributeServiceOverride(MappedConfigurationClass,Object configuration) { configuration.add(SaltSourceService.class, new new SaltSourceService() {

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Nicolas Bouillon
Unfortunately, it doesn't work. On Thu, 06 May 2010 13:21:18 +0200, Michael Gerzabek michael.gerza...@gmx.net wrote: I'm not 100% sure here but think you have to override the SSS. In your AppModule write something like public static void

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Michael Gerzabek
Which TSS version do you use? Is it 2.1.0? Which T5 version? T 5.1.0.5? Which error do you get? Am 06.05.2010 17:39, schrieb Nicolas Bouillon: Unfortunately, it doesn't work. On Thu, 06 May 2010 13:21:18 +0200, Michael Gerzabek michael.gerza...@gmx.net wrote: I'm not 100% sure here but

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Nicolas Bouillon
I use the TSS 2.1.0 with Tapestry 5.1.0.5. I just get a login failed, because the default TSS SaltSource is used (with DEADBEEF as salt). My database doesn't have salt for password, and setting spring-security.password.salt to the empty string fails (thrown exception from Spring

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Michael Gerzabek
well then the only thing you have to do is public static void contributeApplicationDefaults( MappedConfigurationString, String configuration ) { configuration.add( spring-security.password.salt, ); } and everything should work out fine. Am 06.05.2010 21:05, schrieb Nicolas

Re: [T5.1] tapestry-spring-security : overriding saltsource probleme

2010-05-06 Thread Nicolas Bouillon
Did you tried that ? It doesn't work, because TSS pass this value to the SystemWideSaltSource class from spring add calls the following afterPropertiesSet method : public void afterPropertiesSet() throws Exception { if ((this.systemWideSalt == null) ||