Я новичок в публикации Ez и symfony.У нас есть приложение в Ezpublish, где пользователь может войти в систему со своим именем пользователя и паролем.
Даже после предоставления правильных учетных данных оно перенаправляет на страницу входа.
Мы можем войти в системубэк-офис с такими же полномочиями.Мы сталкиваемся с проблемой только для входа конечного пользователя в фронт-офис.
Использование Ezpublish версии 5.4.
Ниже приведен мой файл security.yml
security:
providers:
ezpublish:
id: ezpublish.security.user_provider
role_hierarchy:
ROLE_USER: []
ROLE_RISKMANAGER: [ROLE_USER]
ROLE_MANAGER: [ROLE_RISKMANAGER]
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
ezpublish_setup:
pattern: ^/ezsetup
security: false
ezpublish_rest_forgotpassword:
pattern: ^/api/ezp/v2/user/forgotpassword
anonymous: ~
#security: false
stateless: true
ezpublish_rest:
pattern: ^/api/ezp/v2
stateless: true
ezpublish_http_basic:
realm: eZ Publish REST API
ezpublish_front:
pattern: ^/
anonymous: ~
ezpublish_rest_session: ~
form_login:
login_path: login
check_path: login_check
require_previous_session: false
use_forward: false
always_use_default_target_path: false
default_target_path: /
use_referer: true
failure_path: /loginfailed
logout: ~
guard:
authenticators:
- project.security.device_authenticator
default:
anonymous: ~
access_control:
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
# backend
- { path: ^/api/ezp/v2/user/forgotpassword, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/mot-de-passe-oublie, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/mot-de-passe-oublie, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/creer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/creer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/verification-email, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/verification-email, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/completer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/completer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/mise-a-jour-mot-de-passe, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/mise-a-jour-mot-de-passe, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/_fos_user_context_hash, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/activer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/activer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/bo, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/mot-de-passe-oublie, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/creer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/verification-email, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/completer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/mise-a-jour-mot-de-passe, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/login, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/login, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/_fos_user_context_hash, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/activer-votre-compte, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/country/polygons, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/fr/country/polygons, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/en/country/polygons, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/manage-translation, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/.*, role: ROLE_USER }
- { path: ^/en/country/map, role: ROLE_USER }
- { path: ^/en/, role: ROLE_USER }