开发者

mongodb symfony user authentication?

开发者 https://www.devze.com 2023-03-26 23:28 出处:网络
Is there any way to implement a MongoDB/Document/User based authentication on Symfony2 ? Currently on security/providers we have the type \"entity:\" type which depends on doctrine-orm, but obviously

Is there any way to implement a MongoDB/Document/User based authentication on Symfony2 ?

Currently on security/providers we have the type "entity:" type which depends on doctrine-orm, but obviously cant be used with mongodb-odm Documents.

Any开发者_如何转开发 ideas?


Take a look at FOSUserBundle [ https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md ]

After installation you will have an extra security provider called fos_userbundle

It is build on top of symfony's security system and can be used with Doctrine ORM, Mongodb ODM and Couchdb ODM and it will do a lot of work for you related to user persistence and editing

0

精彩评论

暂无评论...
验证码 换一张
取 消