2

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?

0

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, that's pretty much what i was lookin for.!
and how to do it without that bundle?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.