问题描述
我有一个配置了 Spring Security 的 Spring 3 项目,想迁移到最新的 Spring Security 5.4.6。 在我的旧应用程序中,我使用 Spring 3 的 MD5 加盐解决方案(使用用户名)将散列/加盐密码存储在我的数据库中。即使 Spring Security 5 offers facility to migrate existing MD5 hashed passwords,(例如在数据库中使用 {md5} 为所有散列密码添加前缀以与新的 DelegatingPasswordEncoder 一起使用),它也不提供迁移 MD5 salted 密码的功能...>
这是我的实际安全配置:
<s:authentication-manager>
<s:authentication-provider>
<s:password-encoder hash="md5"><s:salt-source user-property="username"></s:salt-source></s:password-encoder>
</s:authentication-provider>
</s:authentication-manager>
我的问题是:如何使用相同的配置迁移到 Spring Security 5,而不为我的用户重新生成新密码?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)