flownative/neos-multisitehelper

Tooling for use in a multi-site Neos setup.

Installs: 1 992

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 2

Open Issues: 0

Type:neos-package

0.2.0 2018-11-08 21:34 UTC

This package is auto-updated.

Last update: 2024-03-12 14:01:33 UTC


README

MIT license Packagist Maintenance level: Friendship

Multisite Helper for Neos

The Neos Multisite Helper contains a tool to create asset collections for sites created by the Neos Multisite Kickstarter.

Furthermore it provides an authentication provider that gracefully denies login if a user has no access to a site she tries to log in to.

Installation

Usually this package is required by a site package and thus installed along with the depending site automatically.

Only if you keep your site package in your Neos distribution (and not install it using composer), manual installation is needed:

composer require flownative/neos-multisitehelper

Command Usage

After kickstarting and importing a site, use the following command:

./flow multisite:setup --package-key Acme.AcmeCom

This creates an asset collection with a name as expected by the kickstarted site and assign it as default collection to the site.

Authentication Provider

The package comes with an authentication provider that is configured for Neos user accounts through the settings of this package.

It checks if access to the Site the user logged in is granted and rolls back authentication if needed. This avoids an error thrown by the security framework otherwise and thus provides a better user experience. For this to work, a domain must be assigned to the site – otherwise only users with the Neos.Neos:Administrator role are granted access.

Credits

Development of this package has been sponsored by Schwabe AG, Muttenz, Switzerland.

The authentication provider was adapted from code Aske Ertmann provided in a blog post at https://blog.ertmann.me/multi-site-access-restriction-with-neos-cms-9d5624126d5b.