Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pimcore Object, Asset and Document Restriction & Frontend Authentication

License

NotificationsYou must be signed in to change notification settings

dachcom-digital/pimcore-members

Repository files navigation

Add frontend user authentication and document restriction to pimcore.

Software LicenseSoftware LicenseLatest ReleaseTestsPhpStan

Release Plan

ReleaseSupported Pimcore VersionsSupported Symfony VersionsRelease DateMaintainedBranch
5.x11.06.428.09.2023Feature Branchmaster
4.x10.5 - 10.65.422.11.2021Unsupported4.x
3.x6.0 -6.83.4,^4.421.07.2019Unsupported3.x
2.55.4,5.5,5.6,5.7,5.83.418.07.2019Unsupported2.5
1.54.0--07.07.2017Unsupportedpimcore4

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 yourcomposer.json
"require" : {"dachcom-digital/members" :"~5.1.0"}

Add Bundle tobundles.php:

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

Upgrading

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

Optional: Class Installation

Read more about the required classesbelow).

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 toone single config file, e.g.config/packages/security.yaml. Please adoptsecurity_auth_manager.yamland 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.yamlapp:resource:'@MembersBundle/config/pimcore/routing/all.yaml'

Just include some Routes

# config/routes.yamlmembers_auth:resource:'@MembersBundle/config/pimcore/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:classUse 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 itMembersUser
  2. Add parent class:\MembersBundle\Adapter\User\AbstractUser
  3. Add fields:
NameField TypeComment
userNameInput
emailInputNote: Do not add this field if you're using theCMF.
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 theCMF.
passwordRequestedAtDate & Timemust set to it read only
groupsUser GroupThis field comes with Members

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

Customer Data Framework

If you want to use theCustomer Data Framework you need to do some further work. Read more about ithere.

SSO Login

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

Group

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

membersGroup is the default name, you may want to change it. Readhere 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 theemail 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

Upgrade Info

Before updating, pleasecheck our upgrade notes!

License

DACHCOM.DIGITAL AG, Löwenhofstrasse 15, 9424 Rheineck, Schweiz
dachcom.com,dcdi@dachcom.ch
Copyright © 2025 DACHCOM.DIGITAL. All rights reserved.

For licensing details please visitLICENSE.md

About

Pimcore Object, Asset and Document Restriction & Frontend Authentication

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors21


[8]ページ先頭

©2009-2025 Movatter.jp