It could look like a silly question, of course I can reuse password for differente pages... but, this is what I'm trying to ask:

Is there a way of "grouping" the protected pages? Like for X, Y and Z, use password xxxxxx so if you enter the password for page X, you will be automatically authorized to see page Y and page Z when you visit them.

And, is there a way to have a permission like "previously authorized" (or something similar)? Like check if the visitor/user has been authorized on page X, then also allows him/her to see content B, so I can use this kind of feature when defining routes on my app (like checking if the user is authenticated).

I categorized this question as Feature request as I can't see any way of configuring what I'm asking for.

Thanks.

Comments

Yaazkal created an issue. See original summary.

dhcp’s picture

Would love this feature too.

luksak’s picture

No, this is currently not possible, but sounds like a nice freature!

I created another issue that is kinda similar: #3024997: Global password is requested multiple times for every protected page

luksak’s picture

luksak’s picture

A simpler version than the feature request in the IS would be having the paths as a multivalue field. That way we could grant access to multiple paths with one password. Appears like a simpler and better implementation.

Cecilina’s picture

Created a patch for allow multiple pages with same validation and one page has multiple validation, also add function to apply validation through url query.

It seems composer install version is not match up with git pull version as 8.x-1.x-dev branch.
Patch 8.x-1.1 path is for composer install version as 8.x-1.1 version

Patch for 8.x-1.x-dev version is as following:
8.x-1.x-dev

Cecilina’s picture

Cecilina’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: assign-mulitple-validation-page-and-authenticate-and-token-3005788-7.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Cecilina’s picture

fix unit test.

Cecilina’s picture

Cecilina’s picture

Cecilina’s picture

Cecilina’s picture

Status: Needs work » Needs review
douggreen’s picture

See also #2239433: Access to multiple pages with a one password which also has a patch (I didn't see this issue until now).

parisek’s picture

Title: Is possible to assign same validation for different pages? » Allow multiple pages with same validation and one page with multiple validations
Status: Needs review » Needs work

Patch needs re-roll but I think definitely too big change which needs maintainer feedback first and propably bump module version

matysek145’s picture

Here's a patch re-roll

nojj’s picture

I would love to have that feature.
is there any progress?