Update to OpenID Connect Module 2.0 Fails Due to Missing 'authmap' Table Required by Externalauth Dependency

Created on 6 March 2024, 8 months ago
Updated 7 March 2024, 8 months ago

Problem/Motivation

Upon updating the OpenID Connect module to version 2.0 , we've encountered a critical error during the execution of database updates. This issue is closely related to the module's new dependency on the ExternalAuth module. Specifically, the update process fails when attempting to migrate data from 'openid_connect_authmap' to 'authmap', due to the absence of the 'authmap' table in the database.

The database update fails due to the missing 'authmap' table. This failure occurs despite the ExternalAuth module being installed and supposedly active, indicating an issue with the module's installation or activation process where the required database table is not created. Seems there is another similar case where the externalauth module is already installed and version 2 has problems.

https://www.drupal.org/project/openid_connect/issues/3223242

Steps to reproduce

1 . With the ExternalAuth module installed and ostensibly active, update the OpenID Connect module to version 2.0.
2. Run database updates as part of the module update process.
3. Observe the error related to the absence of the 'authmap' table when the update hook attempts to migrate data.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇷Argentina nexonOSX

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

Comments & Activities

  • Issue created by @nexonOSX
  • 🇦🇷Argentina nexonOSX

    Seems if i uninstall and active the externalauth before I made the update it didnt work, but if I uninstall it and install it with a config import it does work so the authomap is created.

Production build 0.71.5 2024