Skip to main content
Version: Latest
Featurev1.1.1open-dxp/members-bundle

Members Bundle

Add frontend user authentication and document restriction to opendxp.

Release Plan​

ReleaseSupported OpenDXP VersionsSupported Symfony VersionsRelease DateMaintainedBranch
1.x1.07.42025Feature Branch1.x

Features​

  • Create Members in backend
  • Allow Members to register in frontend
  • Restrict documents, objects and assets to specific user roles

Installation​

Please read the installation instructions before going deep with Members!

Composer Installation​

  1. Add code below to your composer.json
"require": {
"open-dxp/members-bundle" : "~1.0.0"
}

Add Bundle to bundles.php:

return [
OpenDxp\Bundle\MembersBundle\OpenDxpMembersBundle::class => ['all' => true],
];
  • Execute: $ bin/console opendxp:bundle:install OpenDxpMembersBundle

Upgrading​

  • Execute: $ bin/console doctrine:migrations:migrate --prefix 'OpenDxp\Bundle\MembersBundle'

Optional: Class Installation​

Read more about the required classes below).

bin/console members:install:class

Security Installation​

It is not possible to merge security configurations from multiple locations, including bundles. Instead, you have to move them to one single config file, e.g. config/packages/security.yaml. Please adopt security_auth_manager.yaml and merge your own firewall configuration into one single file.

Route Installation​

MembersBundle does not include any routes per default. Otherwise, it would be hard for you to change or override included routes.

Include all Routes

# config/routes.yaml
app:
resource: '@OpenDxpMembersBundle/config/opendxp/routing/all.yaml'

Just include some Routes

# config/routes.yaml
members_auth:
resource: '@OpenDxpMembersBundle/config/opendxp/routing/auth.yaml'
prefix: /{_locale}/members #change your prefix if you have to.

Class Installation​

Since Members should be the one and only frontend authentication bundle, we need to add the most flexibility as possible. But no worries, it's still simple to integrate.

There is also a class installer command. If you're not using any special class configuration, feel free to use this command: $ bin/console members:install:class Use the -o argument to also install the SsoIdentity Class

You need two classes: User and Group. So let's create it:

User

  1. Create a class and call it MembersUser
  2. Add parent class: \OpenDxp\Bundle\MembersBundle\Adapter\User\AbstractUser
  3. Add fields:
NameField TypeComment
usernameInput
emailInputNote: Do not add this field if you're using the CMF.
confirmationTokenInputmust set to it read only
lastLoginDate & Timemust set to it read only
passwordPasswordHide it, if you want. Note: Do not add this field if you're using the CMF.
passwordRequestedAtDate & Timemust set to it read only
groupsUser GroupThis field comes with Members

membersUser is the default name, you may want to change it. Read here how to achieve that.

Customer Data Framework​

If you want to use the Customer Data Framework you need to do some further work. Read more about it here.

SSO Login​

You want to enable the SSO Feature in Members? Read more about it here.

Group

  1. Create a class and call it MembersGroup
  2. Add parent class: \OpenDxp\Bundle\MembersBundle\Adapter\Group\AbstractGroup
  3. Add fields:
NameField TypeComment
nameInput
rolesMultiselectionSet "Options Provider Class or Service Name" to @OpenDxp\Bundle\MembersBundle\CoreExtension\Provider\RoleOptionsProvider

membersGroup is the default name, you may want to change it. Read here how to achieve that.

Feel free to add additional fields since those are just the required ones. That's it. Members will use those classes to manage authentication and group management.

Email Configuration​

You're almost there, just check the email configuration and you're good to go.


User Management: Further Information​


Restrictions​

Learn more about the Members Restriction feature:


Single Sign On (SSO) with OAuth2​

Tests​

Upgrade Info​

Before updating, please check the changelog!

Coming from an earlier package? Read Migrating to OpenDXP.

License​

Licensed under the GNU General Public License v3.0 (GPLv3). For details, please see LICENSE.md.

© 2026 OpenDXP — GPLv3