php - Multiple firewalls Symfony security -


Do not get the time I get an error using 2 firewall for my symphony app I I have a firewall for regular members And for other vendors.

Error "Unable to locate the controller of the path" / Seller / login-check may be "." Maybe you forgot to add matching route to your routing configuration? The "

When I login and any hit member_secured_area the log routes that works perfectly fine, but it does not work for vendor_secured_area routes.

I / Seller Go to / dashboard route. This redirect fails with the above error to post to me / vendor / login but / vendor / login check

thanks

  Firewall: Dev: Pattern: ^ / (_ (Profiler | WDT) | CSS | Image A. | js) / Security: False vendor_secured_area: Pattern: ^ / vendor / dashboard provider: anonymous member: false form_login: login_path: Know-English check_path: Know-login check log: Path: Know-logout target: / mem ber_secured_area: Pattern: ^ / provider: anonymous member: ~ form_login: login_path: subscribers: Log check_path: member login examined default_target_path: home success_handler: security.authentication_handler failure_handler: security.authentication_handler logout path: member logout goal: / Remember_me : Key: "% secret_key%" life: 2592000 Path: / Dome Do not: ~ access_control: member_access: Path: ^ / member / dashboard roles: IS_AUTHENTICATED_REMEMBERED # Vendor_access: # Path: ^ / vendor / dashboard # roles: IS_AUTHENTICATED_REMEMBERED  

I have found the problem My entry, logout, and check paths were not behind the firewall.

I was allowed to allow access to the login page for my vendor safe area, then it was necessary to use access control to require a role. / P>

  Firewall: Dev: Pattern: ^ / (_ (profiler | WDT) | css | images | js) / Security: False Vendor_secured_area pattern: ^ / vendor / dashboard provider: anonymous member: ~ Form_login: login_path: vendor-login check_path: vendor-login-check default_target_path: vendor-dashboard-index always_use_default_target_path: true logout: path: vendor-logout target: / member_screw_arria: pattern: ^ / provider: member Unnamed: ~ form_login: login_path: Member login check_path: member-login-check default_target_path: home success_handler: security.authentication_handler Failure_handler: security.authentication_handler logout: p : Member-logout target: / remember_me: key: "% secret_key%" lifetime: 2592000 Path: / domain: ~ access_control: - {path: ^ / member / dashboard, roles: IS_AUTHENTICATED_REMEMBERED} - {Path: ^ / vendor / dashboard / Login $, roles: IS_AUTHENTICATED_ANONYMOUSLY} - {path: ^ / vendor / dashboard, roles: IS_AUTHENTICATED_REMEMBERED}  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -