roadiz / rozier-bundle
Installs: 4 240
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Type:symfony-bundle
Requires
- php: >=8.2
- roadiz/compat-bundle: 2.4.*
- roadiz/core-bundle: 2.4.*
- roadiz/openid: 2.4.*
- roadiz/rozier: 2.4.*
- symfony/framework-bundle: 6.4.*
Requires (Dev)
- php-coveralls/php-coveralls: ^2.4
- phpstan/phpdoc-parser: <2
- phpstan/phpstan: ^1.5.3
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-symfony: ^1.1.8
- dev-develop / 2.5.x-dev
- dev-main / 2.4.x-dev
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.31
- v2.3.30
- v2.3.29
- v2.3.28
- v2.3.27
- v2.3.26
- v2.3.25
- v2.3.24
- v2.3.23
- v2.3.22
- v2.3.21
- v2.3.20
- v2.3.19
- v2.3.18
- v2.3.17
- v2.3.16
- v2.3.15
- v2.3.14
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.30
- v2.2.29
- v2.2.28
- v2.2.27
- v2.2.26
- v2.2.25
- v2.2.24
- v2.2.23
- v2.2.22
- v2.2.21
- v2.2.20
- v2.2.19
- v2.2.18
- v2.2.17
- v2.2.16
- v2.2.15
- v2.2.14
- v2.2.13
- v2.2.12
- v2.2.11
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.71
- v2.1.70
- v2.1.69
- v2.1.68
- v2.1.67
- v2.1.66
- v2.1.65
- v2.1.64
- v2.1.63
- v2.1.62
- v2.1.61
- v2.1.57
- v2.1.56
- v2.1.55
- v2.1.54
- v2.1.53
- v2.1.52
- v2.1.51
- v2.1.50
- v2.1.49
- v2.1.48
- v2.1.47
- v2.1.46
- v2.1.45
- v2.1.44
- v2.1.43
- v2.1.42
- v2.1.41
- v2.1.40
- v2.1.39
- v2.1.38
- v2.1.37
- v2.1.36
- v2.1.35
- v2.1.34
- v2.1.33
- v2.1.32
- v2.1.31
- v2.1.30
- v2.1.29
- v2.1.28
- v2.1.27
- v2.1.26
- v2.1.25
- v2.1.24
- v2.1.23
- v2.1.22
- v2.1.21
- v2.1.20
- v2.1.19
- v2.1.18
- v2.1.17
- v2.1.16
- v2.1.15
- v2.1.14
- v2.1.13
- v2.1.12
- v2.1.11
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.x-dev
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- dev-l10n_develop
- dev-l10n_main
This package is auto-updated.
Last update: 2024-12-19 11:51:50 UTC
README
Legacy administration interface port to Roadiz v2
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
$ composer require roadiz/rozier-bundle
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require roadiz/rozier-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php return [ // ... \RZ\Roadiz\RozierBundle\RoadizRozierBundle::class => ['all' => true], ];
Configuration
- Copy
config/packages/roadiz_rozier.yaml
to your Symfony appconfig/packages
folder. - Disable Twig
strict_variables
- Add custom
security
configuration:
# config/packages/security.yaml security: enable_authenticator_manager: true password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: algorithm: auto providers: openid_user_provider: id: RZ\Roadiz\OpenId\Authentication\Provider\OpenIdAccountProvider roadiz_user_provider: entity: class: RZ\Roadiz\CoreBundle\Entity\User property: username all_users: chain: providers: [ 'openid_user_provider', 'roadiz_user_provider' ] firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: lazy: true provider: all_users switch_user: { role: ROLE_SUPERADMIN, parameter: _su } logout: path: logoutPage custom_authenticator: - RZ\Roadiz\RozierBundle\Security\RozierAuthenticator access_control: - { path: ^/rz-admin/login, roles: PUBLIC_ACCESS } - { path: ^/rz-admin, roles: ROLE_BACKEND_USER }
- Add custom routes:
# config/routes.yaml roadiz_rozier: resource: "@RoadizRozierBundle/config/routing.yaml" rz_intervention_request: resource: "@RZInterventionRequestBundle/Resources/config/routing.yml" prefix: /
OpenID
This bundle can allow users to log in to backoffice using OpenID:
#config/packages/roadiz_rozier.yaml roadiz_rozier: #... open_id: # Verify User info in JWT at each login verify_user_info: false # Force generating redirect uri with https scheme. (required by some OpenID providers) force_ssl_on_redirect_uri: true # Standard OpenID autodiscovery URL, required to enable OpenId login in Roadiz CMS. discovery_url: '%env(string:OPEN_ID_DISCOVERY_URL)%' # For public identity providers (such as Google), restrict users emails by their domain. hosted_domain: '%env(string:OPEN_ID_HOSTED_DOMAIN)%' # OpenID identity provider OAuth2 client ID oauth_client_id: '%env(string:OPEN_ID_CLIENT_ID)%' # OpenID identity provider OAuth2 client secret oauth_client_secret: '%env(string:OPEN_ID_CLIENT_SECRET)%' granted_roles: - ROLE_USER - ROLE_BACKEND_USER
Then add custom authenticator roadiz_rozier.open_id.authenticator
to your security configuration:
#config/packages/security.yaml security: firewalls: main: # ... custom_authenticator: - RZ\Roadiz\RozierBundle\Security\RozierAuthenticator - roadiz_rozier.open_id.authenticator
Contributing
Report issues and send Pull Requests in the main Roadiz repository