Replace AUTH_EXEMPT_PATHS
setting with a view-specific control
#16580
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v4.0.5
Feature type
Change to existing functionality
Proposed functionality
NetBox includes a
LOGIN_REQUIRED
configuration parameter: When enabled, authentication is enforced for all UI views except those with URL paths matching an entry insettings.AUTH_EXEMPT_PATHS
.This issue proposes replacing the static
AUTH_EXEMPT_PATHS
setting with a dynamic mechanism implemented on individual views which can be used to override enforcement of the globalLOGIN_REQUIRED
parameter on a per-view basis. The most reliable means of implementation is probably to have the relevant views each register themselves in the global registry, and tweak the current middleware logic to reference the registry instead of the static setting. However, alternative implementations may also be considered.Use case
Shifting from a static form of declaration to a dynamic one will enable plugins to exempt their own views from
LOGIN_REQUIRED
enforcement.Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: