You are browsing a version that is no longer maintained.

SecurityBundle integration

A user provider is available for your MongoDB projects if you use Symfony SecurityBundle. It works exactly the same way as the entity user provider described in the documentation:

# config/packages/security.yamlsecurity:    providers:        my_mongo_provider:            mongodb: {class: App\Document\User, property: username}