Problem/Motivation

Urls and IPs have to be write in a configuration form.

Steps to reproduce

See the file src/Routing/RouteSubscriber.php.
For now only route user.login is checked and not configurable and IPs are to be set in the settings.php file like this :

$config['restrict_admin']['ip'] = [
 '127.0.0.1'
];

Proposed resolution

  • Create a configuration form in the admin interface to configure routes to be restrict.
  • For each route, a list of IPs (or range of IPs) have to be configure.
  • Give the possibility to disable the restricted access for each route
  • Set a different configuration for each route to simplify the activation/desactivation on different environments (use configuration entities)

Comments

OlivierG created an issue. See original summary.

olivierg’s picture

Issue summary: View changes
olivierg’s picture

Issue summary: View changes
olivierg’s picture

Issue summary: View changes
olivierg’s picture

Assigned: Unassigned » olivierg

  • OlivierG committed 561fd9f on 1.0.x
     Issue #3251003 by OlivierG: Add a configuration form and configuration...
olivierg’s picture

Status: Active » Fixed
olivierg’s picture

Version: » 1.0.0-beta2
Status: Fixed » Closed (fixed)