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) ||
"".equals(this.systemWideSalt)) {
throw new IllegalArgumentException("A systemWideSalt must
be set");
}
}
Le 06/05/2010 21:36, Michael Gerzabek a écrit :
well then the only thing you have to do is
public static void contributeApplicationDefaults(
MappedConfiguration<String, String> configuration ) {
configuration.add( "spring-security.password.salt", "" );
}
and everything should work out fine.
Am 06.05.2010 21:05, schrieb 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 SystemWideSaltSource).
The problem is, if i override the SaltSource as explained in
http://www.localhost.nu/java/tapestry-spring-security/conf.html #
Alias Contributions : sometimes the override works, sometime not.
Seems to depends of initialization order.
Le 06/05/2010 20:40, Michael Gerzabek a écrit :
Which TSS version do you use? Is it 2.1.0? Which T5 version? T
5.1.0.5? Which error do you get?
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org