TokenAuthUser does not implement getBundleEntity()

Created on 14 July 2025, about 6 hours ago

Problem/Motivation

Due to the change in https://www.drupal.org/project/drupal/issues/2699835 Add a method to ContentEntityBase for getting its Bundle entity Active the TokenAuthUser class must now implement a getBundleEntity method

Steps to reproduce

Setup any endpoint, and then once you have a token and try to access it you'll receive the following error:
Fatal error: Class Drupal\simple_oauth\Authentication\TokenAuthUser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Entity\ContentEntityInterface::getBundleEntity) in <b>/var/www/html/modules/contrib/simple_oauth/src/Authentication/TokenAuthUser.php</b> on line <b>20</b><br />

Proposed resolution

Implement this method

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇬🇧United Kingdom justafish London, UK

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024