Entity queries must explicitly set whether the query should be access checked or not

Created on 23 June 2023, over 1 year ago

Problem/Motivation

When using the module on Drupal 10 you will see the next error:

Error on authentication via generic:XXXXXXXXXXXXXX realm: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck() .

Steps to reproduce

Use OpenID Connect Client module on a fresh Drupal 10 installation

Proposed resolution

Add ->accessCheck(FALSE) to the entity queries. You probably want to get all users, regardless of access, for login purposes.

Patch included.

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇪🇸Spain somms Sevilla

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

Comments & Activities

Production build 0.71.5 2024