使用Symfony 1.4 sfGuardUser表和Symfony 2 SecurityBundle?

时间:2022-10-25 19:15:48

I am trying to migrate a part of a software system to Symfony 2. I can't possible migrate all of them at once, so, I am looking for a way to use sf_guard_ tables for authentication/authorization in Symfony 2. Is this possible?

我正在尝试将软件系统的一部分迁移到Symfony 2。我不可能同时迁移所有的表,因此,我正在寻找一种在Symfony 2中使用sf_guard_表进行身份验证/授权的方法。这是可能的吗?

I have done this so far: http://www.propelorm.org/cookbook/symfony2/the-symfony2-security-component-and-propel.html

到目前为止,我已经做到了:http://www.propelorm.org/cookbook/symfony2/security-component -propel.html

I think the current issue is that the hashing scheme (that involves the use of a salt) does not work the same way and also that the role/permission system is different.

我认为当前的问题是散列方案(涉及使用salt)的工作方式不同,角色/权限系统也不同。

1 个解决方案

#1


0  

I would suggest you use FOS User Bundle https://github.com/FriendsOfSymfony/FOSUserBundle. Great documentation and in active development.

我建议您使用FOS用户包https://github.com/FriendsOfSymfony/FOSUserBundle。优秀的文档和积极的开发。

#1


0  

I would suggest you use FOS User Bundle https://github.com/FriendsOfSymfony/FOSUserBundle. Great documentation and in active development.

我建议您使用FOS用户包https://github.com/FriendsOfSymfony/FOSUserBundle。优秀的文档和积极的开发。