core icon indicating copy to clipboard operation
core copied to clipboard

[General] Implement - migrate to Symfony security system.

Open Kaik opened this issue 8 years ago • 5 comments

Q A
Zikula Version 2.x.x
PHP Version 5.x

Symfony security system is very powerful and flexible component. We could base our security on Symfony's security to achieve the same functionality and more. Those systems are not compatible by default so a good amount of work and thinking would need to be done to do it. Affected modules are UsersModule, ZAuthModule, GroupsModule and PermissionsModule.

Some resources: http://symfony.com/doc/current/cookbook/security/index.html https://www.youtube.com/watch?v=SVQwBwSk__E

Kaik avatar Jul 17 '16 10:07 Kaik

More information's regarding security http://loige.co/symfony-security-authentication-made-simple/ http://www.slideshare.net/kriswallsmith/love-and-loss-a-symfony-security-play

I'm working on it now but as most of the documents states security component is one of most complicated. I have played with plain Symfony + FosUsersBundle and additionally I have checked SonataAdminBundle + SonataUsersBundle - all of those are very inspiring as well as EasyAdminBundle.

So security bundle provides some basic interfaces to use for each aspect of security like UserInterface GroupInterface and much more. FOSUsersBundle makes use of those interfaces but expects you to create your own UserBundle and extend their classes which implement mentioned interfaces. While SonataUserBundle extends FOSUsersBundle and creates another UsersBundle inside Sonata Aplication folder... we may not need to do all those things we may want to make our users module to work directly with Symfony's core security - this is of course only "Users " point of view there is a lot more actually users bit is not even a tip of an iceberg...

Kaik avatar Jul 29 '16 19:07 Kaik

maybe relevant, too: https://medium.com/@minompi/how-to-use-two-different-authentications-systems-for-your-symfony-application-fae3d5262e19

Guite avatar Jul 23 '18 04:07 Guite

want to look at this for 3.0 maybe.

craigh avatar Feb 08 '20 11:02 craigh

related https://github.com/symfony/symfony/issues/23081

craigh avatar Feb 08 '20 11:02 craigh

Symfony 5.1 introduced an updated security system. Re-scheduled this ticket for 4.0.

Guite avatar May 31 '20 08:05 Guite

closing as this has been done recently

Guite avatar Apr 01 '23 12:04 Guite