Bypass pages password protection with Plugin Conditions

Created on 1 October 2025, 8 days ago

Problem/Motivation

There are lot of context when checkProtectedPage is not needed to run "further"
Starting with admin pages ...
And for some it could really hurt ... JSONAPI paths with paging

Steps to reproduce

All Drupal pages for an user without bypass pages password protection permission ... are checked.
Even a lot of them should not be checked

Errors: from JSONAPI with paging, ex. /jsonapi/node/article?page[offset]=50&page[limit]=50
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value contains a non-scalar value

Proposed resolution

Implement extra settings to use Plugin Conditions for defining the Contexts to Bypass pages.

Remaining tasks

- Update Setting form to include Plugin Conditions
- Build a Plugin Conditions resolver to be used on checkProtectedPage as initial check/step.

User interface changes

- New Condition vertical tabs group.

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania vasike Ramnicu Valcea

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024