Integrity constraint violation: 1062 Duplicate entry openid_connect.myProvider

Created on 11 October 2023, about 1 year ago

The hook Update throws below error

[error] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-openid_connect.myProvider' for key 'PRIMARY': INSERT INTO {authmap} (uid, provider, authname) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2);

When there are multiple records in old openid_connect table openid_connect_authmap

Proposed Solution:
Include the login in try and catch block to bypass the hook update fail scenario

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇳India rakshith.thotada

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

Comments & Activities

Production build 0.71.5 2024